aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/vmenu.cpp
diff options
context:
space:
mode:
authorStrangerke2011-06-11 22:35:21 +0200
committerStrangerke2011-06-11 22:35:21 +0200
commit11264a60a7dc8e3e04b5b73f6794269f097010ff (patch)
tree5c1772bfb1bcb419b6efd0324d363397ef2e5691 /engines/cge/vmenu.cpp
parent15d98b2a5479967590c3eba82e349f642c4ca7cf (diff)
downloadscummvm-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/vmenu.cpp')
-rw-r--r--engines/cge/vmenu.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/cge/vmenu.cpp b/engines/cge/vmenu.cpp
index 8178868578..46bb45e9c9 100644
--- a/engines/cge/vmenu.cpp
+++ b/engines/cge/vmenu.cpp
@@ -28,7 +28,7 @@
#include "cge/vmenu.h"
#include "cge/mouse.h"
#include <string.h>
-#include <alloc.h>
+//#include <alloc.h>
namespace CGE {
@@ -51,9 +51,9 @@ MENU_BAR::MENU_BAR (uint16 w)
int h = FONT_HIG + 2 * MB_VM, i = (w += 2 * MB_HM) * h;
uint8 * p = farnew(uint8, i), * p1, * p2;
- _fmemset(p+w, TRANS, i-2*w);
- _fmemset(p, MB_LT, w);
- _fmemset(p+i-w, MB_RB, w);
+ memset(p+w, TRANS, i-2*w);
+ memset(p, MB_LT, w);
+ memset(p+i-w, MB_RB, w);
p1 = p;
p2 = p+i-1;
for (i = 0; i < h; i ++)
@@ -89,7 +89,7 @@ char * VMGather (CHOICE * list)
len += strlen(cp->Text);
++ h;
}
- vmgt = new uint8[len+h];
+ vmgt = new char[len+h];
if (vmgt)
{
*vmgt = '\0';