diff options
Diffstat (limited to 'engines/cge/vga13h.cpp')
-rw-r--r-- | engines/cge/vga13h.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index ca6a9e3bdd..6fc17dc37b 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -986,8 +986,8 @@ Vga::Vga(int mode) setStatAdr(); if (_statAdr != VGAST1_) _mono++; - _oldColors = farnew(Dac, 256); - _newColors = farnew(Dac, 256); + _oldColors = (Dac *) malloc(sizeof(Dac) * PAL_CNT); + _newColors = (Dac *) malloc(sizeof(Dac) * PAL_CNT); _oldScreen = SaveScreen(); getColors(_oldColors); sunset(); |