diff options
author | Strangerke | 2011-06-11 22:35:21 +0200 |
---|---|---|
committer | Strangerke | 2011-06-11 22:35:21 +0200 |
commit | 11264a60a7dc8e3e04b5b73f6794269f097010ff (patch) | |
tree | 5c1772bfb1bcb419b6efd0324d363397ef2e5691 /engines/cge/talk.cpp | |
parent | 15d98b2a5479967590c3eba82e349f642c4ca7cf (diff) | |
download | scummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.tar.gz scummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.tar.bz2 scummvm-rg350-11264a60a7dc8e3e04b5b73f6794269f097010ff.zip |
CGE: Stubbing and cleanup made by SylvainTV
Diffstat (limited to 'engines/cge/talk.cpp')
-rw-r--r-- | engines/cge/talk.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/engines/cge/talk.cpp b/engines/cge/talk.cpp index 9c15ac1b65..d305d1d27e 100644 --- a/engines/cge/talk.cpp +++ b/engines/cge/talk.cpp @@ -31,8 +31,8 @@ #include "cge/game.h" #include "cge/mouse.h" #include <dos.h> -#include <alloc.h> -#include <mem.h> +//#include <alloc.h> +//#include <mem.h> namespace CGE { @@ -70,9 +70,9 @@ FONT::FONT (const char * name) FONT::~FONT (void) { - farfree(Map); - farfree(Pos); - farfree(Wid); + free(Map); + free(Pos); + free(Wid); } @@ -212,10 +212,10 @@ void TALK::Update (const char * tx) else { int cw = Font.Wid[*tx], i; - char * f = Font.Map + Font.Pos[*tx]; + uint8 * f = Font.Map + Font.Pos[*tx]; for (i = 0; i < cw; i ++) { - char * p = m; + uint8 * p = m; uint16 n; register uint16 b = * (f ++); for (n = 0; n < FONT_HIG; n ++) @@ -246,13 +246,13 @@ BITMAP * TALK::Box (uint16 w, uint16 h) if (h < 8) h = 8; b = farnew(uint8, n = w * h); if (! b) VGA::Exit("No core"); - _fmemset(b, TEXT_BG, n); + memset(b, TEXT_BG, n); if (Mode) { p = b; q = b + n - w; - _fmemset(p, LGRAY, w); - _fmemset(q, DGRAY, w); + memset(p, LGRAY, w); + memset(q, DGRAY, w); while (p < q) { p += w; @@ -301,10 +301,10 @@ void TALK::PutLine (int line, const char * text) // clear whole rectangle p = v; // assume blanked line above text - _fmemcpy(p, p-lsiz, rsiz); p += psiz; // tricky replicate lines for plane 0 - _fmemcpy(p, p-lsiz, rsiz); p += psiz; // same for plane 1 - _fmemcpy(p, p-lsiz, rsiz); p += psiz; // same for plane 2 - _fmemcpy(p, p-lsiz, rsiz); // same for plane 3 + memcpy(p, p-lsiz, rsiz); p += psiz; // tricky replicate lines for plane 0 + memcpy(p, p-lsiz, rsiz); p += psiz; // same for plane 1 + memcpy(p, p-lsiz, rsiz); p += psiz; // same for plane 2 + memcpy(p, p-lsiz, rsiz); // same for plane 3 // paint text line if (text) |