final fixes for UIQ3

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@573 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-08-24 13:26:57 +00:00
parent f8af96349e
commit 6a13ef3f56
4 changed files with 11 additions and 5 deletions

View file

@ -1430,7 +1430,7 @@ static void PicoLine(void)
FinalizeLine(sh);
if (PicoScanEnd != NULL)
PicoScanEnd(DrawScanline);
skip_next_line = PicoScanEnd(DrawScanline);
}
void PicoDrawSync(int to, int blank_last_line)

View file

@ -729,7 +729,8 @@ static void keys_parse(const char *var, const char *val, int binds[32],
return;
}
if (binds == currentConfig.KeyBinds && !(keys_encountered & (1<<t))) { // hack
// unbind old, but only when key is first encountered
if (t < 32 && binds == currentConfig.KeyBinds && !(keys_encountered & (1<<t))) {
binds[t] = 0;
keys_encountered |= 1<<t;
}

View file

@ -95,8 +95,10 @@ void CGameAudioMS::ConstructL()
iBufferSize *= bufferedFrames;
for (TInt i=0 ; i<KSoundBuffers ; i++)
{
iSoundBuffers[i] = HBufC8::NewL(iBufferSize);
iSoundBuffers[i]->Des().FillZ (iBufferSize);
// it seems .SetLength(max) throws USER:23 panic,
// so make them a bit larger
iSoundBuffers[i] = HBufC8::NewL(iBufferSize+4);
iSoundBuffers[i]->Des().FillZ (iBufferSize+4);
}
iCurrentBuffer = 0;

View file

@ -389,6 +389,7 @@ int vidInit(void *vidmem, int reinit)
// select suitable blitters
vidBlit = vidBlit_270;
PicoScanBegin = EmuScanBegin8;
PicoScanEnd = NULL;
drawTextFps = drawTextFps0;
drawTextNotice = drawTextNotice0;
@ -411,6 +412,7 @@ int vidInit(void *vidmem, int reinit)
vidBlit = vidBlitFit_0;
drawTextFps = drawTextFpsFit0;
drawTextNotice = drawTextNoticeFit0;
PicoScanBegin = NULL;
PicoScanEnd = EmuScanEndFit0;
}
} else if (currentConfig.rotation == TPicoConfig::PRot90) {
@ -432,6 +434,7 @@ int vidInit(void *vidmem, int reinit)
vidBlit = vidBlitFit_180;
drawTextFps = drawTextFpsFit0;
drawTextNotice = drawTextNoticeFit0;
PicoScanBegin = NULL;
PicoScanEnd = EmuScanEndFit0;
}
}