diff options
author | Vincent Hamm | 2002-06-27 14:10:56 +0000 |
---|---|---|
committer | Vincent Hamm | 2002-06-27 14:10:56 +0000 |
commit | a88b78fc371e08f73839c564726f96358f84a8b1 (patch) | |
tree | 9b4b3317b491e36abe0ddc000b8cbdd62a1021bc | |
parent | a1ccc73112525275917472a8c13be9f048cdee6b (diff) | |
download | scummvm-rg350-a88b78fc371e08f73839c564726f96358f84a8b1.tar.gz scummvm-rg350-a88b78fc371e08f73839c564726f96358f84a8b1.tar.bz2 scummvm-rg350-a88b78fc371e08f73839c564726f96358f84a8b1.zip |
Fixed the gost animation background reset. Made a little tweak to draw the gui in vertical rooms (not 100% working)
svn-id: r4435
-rw-r--r-- | akos.cpp | 4 | ||||
-rw-r--r-- | gfx.cpp | 2 | ||||
-rw-r--r-- | gfx.h | 4 | ||||
-rw-r--r-- | gui.cpp | 2 |
4 files changed, 7 insertions, 5 deletions
@@ -928,8 +928,10 @@ void AkosRenderer::codec5() if(left > max_width) left -= left - max_width; + // Yazoo: this is not correct, but fix a lots of bugs for the momment + draw_top = 0; - draw_bottom = 200; + draw_bottom = vs->height; _vm->updateDirtyRect(0, left, right+1, top, bottom+1, 1 << dirty_id); @@ -231,7 +231,7 @@ void Gdi::drawStripToScreen(VirtScreen * vs, int x, int w, int t, int b) scrollY = 0; ptr = vs->screenPtr + (t * 40 + x) * 8 + _readOffs + scrollY * 320; - _vm->_system->copy_rect(ptr, 320, x * 8, vs->topline + t , w, height); + _vm->_system->copy_rect(ptr, 320, x * 8, vs->topline + t , w, height); } void blit(byte *dst, byte *src, int w, int h) @@ -53,8 +53,8 @@ struct VirtScreen { /* Virtual screen areas */ byte alloctwobuffers; byte scrollable; uint16 xstart; - byte tdirty[40]; - byte bdirty[40]; + uint16 tdirty[40]; + uint16 bdirty[40]; byte *screenPtr; byte *backBuf; }; @@ -522,7 +522,7 @@ byte *Gui::getBasePtr(int x, int y) return NULL; return _vs->screenPtr + x + (y - _vs->topline) * 320 + - _s->_screenStartStrip * 8; + _s->_screenStartStrip * 8 + (_s->camera._cur.y - 100)*320; } void Gui::lineto(int x, int y) |