endian fixes,
don't use adlib driver if sound initialization fails, simon1 savedialog works svn-id: r3955
This commit is contained in:
parent
d91b85049f
commit
71eac5acd3
14 changed files with 410 additions and 70 deletions
25
gfx.cpp
25
gfx.cpp
|
@ -157,31 +157,6 @@ void Scumm::drawDirtyScreenParts()
|
|||
}
|
||||
}
|
||||
|
||||
void Scumm::redrawLines(int from, int to)
|
||||
{
|
||||
VirtScreen *vs = virtscr;
|
||||
int i, j;
|
||||
|
||||
if (to <= from)
|
||||
return;
|
||||
|
||||
for (i = 0; i != ARRAYSIZE(virtscr); i++, vs++) {
|
||||
if (to > vs->topline && from < vs->topline + vs->height) {
|
||||
int min = from - vs->topline;
|
||||
int max = to - vs->topline;
|
||||
if (min < 0)
|
||||
min = 0;
|
||||
if (max > vs->height)
|
||||
max = vs->height;
|
||||
for (j = 0; j != 40; j++) {
|
||||
vs->tdirty[j] = min;
|
||||
vs->bdirty[j] = max;
|
||||
}
|
||||
gdi.updateDirtyScreen(vs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Scumm::updateDirtyScreen(int slot)
|
||||
{
|
||||
gdi.updateDirtyScreen(&virtscr[slot]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue