Fixed the gost animation background reset. Made a little tweak to draw the gui in vertical rooms (not 100% working)
svn-id: r4435
This commit is contained in:
parent
a1ccc73112
commit
a88b78fc37
4 changed files with 7 additions and 5 deletions
4
akos.cpp
4
akos.cpp
|
@ -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);
|
||||
|
||||
|
|
4
gfx.h
4
gfx.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;
|
||||
};
|
||||
|
|
2
gui.cpp
2
gui.cpp
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue