aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/snail.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2011-06-27 18:57:58 +1000
committerPaul Gilbert2011-06-27 18:57:58 +1000
commite13317baeab99f4868d49a89e110deda1d5ca5f4 (patch)
tree38666ccfc1b7819072beac2442ff70c00634daca /engines/cge/snail.cpp
parentd5fdd094294becb49ef2adf0af00c4814c6efefe (diff)
downloadscummvm-rg350-e13317baeab99f4868d49a89e110deda1d5ca5f4.tar.gz
scummvm-rg350-e13317baeab99f4868d49a89e110deda1d5ca5f4.tar.bz2
scummvm-rg350-e13317baeab99f4868d49a89e110deda1d5ca5f4.zip
CGE: Beginnings of work on graphics support
Diffstat (limited to 'engines/cge/snail.cpp')
-rw-r--r--engines/cge/snail.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp
index 2b36ca4325..a07cf9d09b 100644
--- a/engines/cge/snail.cpp
+++ b/engines/cge/snail.cpp
@@ -65,7 +65,6 @@ extern SPRITE *PocLight;
//-------------------------------------------------------------------------
extern SPRITE *Pocket[];
extern int PocPtr;
-extern DAC *SysPal;
static void SNGame(SPRITE *spr, int num) {
switch (num) {
@@ -576,7 +575,7 @@ void SNSend(SPRITE *spr, int val) {
spr->Flags.Slav = false;
} else {
if (spr->Ref % 1000 == 0)
- BITMAP::Pal = SysPal;
+ BITMAP::Pal = VGA::SysPal;
if (spr->Flags.Back)
spr->BackShow(true);
else
@@ -849,7 +848,7 @@ void SNFlash(bool on) {
if (on) {
DAC *pal = farnew(DAC, PAL_CNT);
if (pal) {
- memcpy(pal, SysPal, PAL_SIZ);
+ memcpy(pal, VGA::SysPal, PAL_SIZ);
for (int i = 0; i < PAL_CNT; i ++) {
register int c;
c = pal[i].R << 1;
@@ -862,14 +861,14 @@ void SNFlash(bool on) {
Vga->SetColors(pal, 64);
}
} else
- Vga->SetColors(SysPal, 64);
+ Vga->SetColors(VGA::SysPal, 64);
Dark = false;
}
static void SNLight(bool in) {
if (in)
- Vga->Sunrise(SysPal);
+ Vga->Sunrise(VGA::SysPal);
else
Vga->Sunset();
Dark = ! in;