aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorOliver Kiehl2003-05-28 21:29:50 +0000
committerOliver Kiehl2003-05-28 21:29:50 +0000
commit79ba8e7227abc752ae0c23cba4959496b00b6eea (patch)
tree9da8e2a0915ac1359cd717b7589804ad57884aa9 /sky
parent34bf11b43f9192cb59e3a8072f8d257329053de9 (diff)
downloadscummvm-rg350-79ba8e7227abc752ae0c23cba4959496b00b6eea.tar.gz
scummvm-rg350-79ba8e7227abc752ae0c23cba4959496b00b6eea.tar.bz2
scummvm-rg350-79ba8e7227abc752ae0c23cba4959496b00b6eea.zip
add screen update to main loop
svn-id: r8063
Diffstat (limited to 'sky')
-rw-r--r--sky/screen.h12
-rw-r--r--sky/sky.cpp3
2 files changed, 10 insertions, 5 deletions
diff --git a/sky/screen.h b/sky/screen.h
index ac315b94a4..44f3a712f3 100644
--- a/sky/screen.h
+++ b/sky/screen.h
@@ -75,6 +75,11 @@ public:
void fnDrawScreen(uint32 palette, uint32 scroll);
void clearScreen(void) { memset(_currentScreen, 0, FULL_SCREEN_WIDTH * FULL_SCREEN_HEIGHT); };
+ void recreate(void);
+ void flip(void);
+
+ void spriteEngine(void);
+
private:
OSystem *_system;
SkyDisk *_skyDisk;
@@ -108,14 +113,11 @@ private:
//- more regular screen.asm + layer.asm routines
void convertPalette(uint8 *inPal, uint8* outPal);
void palette_fadedown_helper(uint32 *pal, uint num);
- void recreate(void);
- void flip(void);
-
+
//- sprite.asm routines
// fixme: get rid of these globals
uint32 _sprWidth, _sprHeight, _sprX, _sprY, _maskX1, _maskX2;
- void spriteEngine(void);
- void doSprites(uint8 layer);
+ void doSprites(uint8 layer);
void sortSprites(void);
void drawSprite(uint8 *spriteData, Compact *sprCompact);
void verticalMask(void);
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 0aaf1d9d0f..3478a5e0d4 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -145,6 +145,9 @@ void SkyState::go() {
while (1) {
delay(100);
_skyLogic->engine();
+ _skyScreen->recreate();
+ _skyScreen->spriteEngine();
+ _skyScreen->flip();
}
}