mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
final fixes for UIQ3
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@573 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f8af96349e
commit
6a13ef3f56
4 changed files with 11 additions and 5 deletions
|
@ -1430,7 +1430,7 @@ static void PicoLine(void)
|
||||||
FinalizeLine(sh);
|
FinalizeLine(sh);
|
||||||
|
|
||||||
if (PicoScanEnd != NULL)
|
if (PicoScanEnd != NULL)
|
||||||
PicoScanEnd(DrawScanline);
|
skip_next_line = PicoScanEnd(DrawScanline);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PicoDrawSync(int to, int blank_last_line)
|
void PicoDrawSync(int to, int blank_last_line)
|
||||||
|
|
|
@ -729,7 +729,8 @@ static void keys_parse(const char *var, const char *val, int binds[32],
|
||||||
return;
|
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;
|
binds[t] = 0;
|
||||||
keys_encountered |= 1<<t;
|
keys_encountered |= 1<<t;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,8 +95,10 @@ void CGameAudioMS::ConstructL()
|
||||||
iBufferSize *= bufferedFrames;
|
iBufferSize *= bufferedFrames;
|
||||||
for (TInt i=0 ; i<KSoundBuffers ; i++)
|
for (TInt i=0 ; i<KSoundBuffers ; i++)
|
||||||
{
|
{
|
||||||
iSoundBuffers[i] = HBufC8::NewL(iBufferSize);
|
// it seems .SetLength(max) throws USER:23 panic,
|
||||||
iSoundBuffers[i]->Des().FillZ (iBufferSize);
|
// so make them a bit larger
|
||||||
|
iSoundBuffers[i] = HBufC8::NewL(iBufferSize+4);
|
||||||
|
iSoundBuffers[i]->Des().FillZ (iBufferSize+4);
|
||||||
}
|
}
|
||||||
|
|
||||||
iCurrentBuffer = 0;
|
iCurrentBuffer = 0;
|
||||||
|
|
|
@ -321,7 +321,7 @@ static void vidBlitCenter_180(int full)
|
||||||
static void vidBlitFit_0(int full)
|
static void vidBlitFit_0(int full)
|
||||||
{
|
{
|
||||||
if(Pico.video.reg[12]&1)
|
if(Pico.video.reg[12]&1)
|
||||||
vidConvCpy_center2_40c_0(screenbuff, PicoDraw2FB+328*8, localPal, 168);
|
vidConvCpy_center2_40c_0(screenbuff, PicoDraw2FB+328*8, localPal, 168);
|
||||||
else vidConvCpy_center2_32c_0(screenbuff, PicoDraw2FB+328*8, localPal, 168);
|
else vidConvCpy_center2_32c_0(screenbuff, PicoDraw2FB+328*8, localPal, 168);
|
||||||
if(full) vidClear((unsigned long *)screenbuff + 168*256, 320-168);
|
if(full) vidClear((unsigned long *)screenbuff + 168*256, 320-168);
|
||||||
}
|
}
|
||||||
|
@ -389,6 +389,7 @@ int vidInit(void *vidmem, int reinit)
|
||||||
// select suitable blitters
|
// select suitable blitters
|
||||||
vidBlit = vidBlit_270;
|
vidBlit = vidBlit_270;
|
||||||
PicoScanBegin = EmuScanBegin8;
|
PicoScanBegin = EmuScanBegin8;
|
||||||
|
PicoScanEnd = NULL;
|
||||||
drawTextFps = drawTextFps0;
|
drawTextFps = drawTextFps0;
|
||||||
drawTextNotice = drawTextNotice0;
|
drawTextNotice = drawTextNotice0;
|
||||||
|
|
||||||
|
@ -411,6 +412,7 @@ int vidInit(void *vidmem, int reinit)
|
||||||
vidBlit = vidBlitFit_0;
|
vidBlit = vidBlitFit_0;
|
||||||
drawTextFps = drawTextFpsFit0;
|
drawTextFps = drawTextFpsFit0;
|
||||||
drawTextNotice = drawTextNoticeFit0;
|
drawTextNotice = drawTextNoticeFit0;
|
||||||
|
PicoScanBegin = NULL;
|
||||||
PicoScanEnd = EmuScanEndFit0;
|
PicoScanEnd = EmuScanEndFit0;
|
||||||
}
|
}
|
||||||
} else if (currentConfig.rotation == TPicoConfig::PRot90) {
|
} else if (currentConfig.rotation == TPicoConfig::PRot90) {
|
||||||
|
@ -432,6 +434,7 @@ int vidInit(void *vidmem, int reinit)
|
||||||
vidBlit = vidBlitFit_180;
|
vidBlit = vidBlitFit_180;
|
||||||
drawTextFps = drawTextFpsFit0;
|
drawTextFps = drawTextFpsFit0;
|
||||||
drawTextNotice = drawTextNoticeFit0;
|
drawTextNotice = drawTextNoticeFit0;
|
||||||
|
PicoScanBegin = NULL;
|
||||||
PicoScanEnd = EmuScanEndFit0;
|
PicoScanEnd = EmuScanEndFit0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue