winport: fix crash with HD prescale and --num-cores 1. OSD is messed up in this case. Not going to fix that now since --num-cores 1 is a very old quirks hack anyway. Fixes #20
This commit is contained in:
parent
1213deb102
commit
ae37e1259e
|
@ -2059,7 +2059,7 @@ void Display()
|
|||
|
||||
if(CommonSettings.single_core())
|
||||
{
|
||||
video.srcBuffer = (u8*)dispInfo.masterNativeBuffer;
|
||||
video.srcBuffer = (u8*)dispInfo.masterCustomBuffer;
|
||||
video.srcBufferSize = dispInfo.customWidth*dispInfo.customHeight*2*2;
|
||||
DoDisplay(true);
|
||||
}
|
||||
|
@ -2209,7 +2209,7 @@ static void StepRunLoop_Paused()
|
|||
// periodically update single-core OSD when paused and in the foreground
|
||||
if(CommonSettings.single_core() && GetActiveWindow() == mainLoopData.hwnd)
|
||||
{
|
||||
video.srcBuffer = (u8*)GPU->GetDisplayInfo().masterNativeBuffer;
|
||||
video.srcBuffer = (u8*)GPU->GetDisplayInfo().masterCustomBuffer;
|
||||
DoDisplay(true);
|
||||
}
|
||||
|
||||
|
@ -5025,7 +5025,7 @@ DOKEYDOWN:
|
|||
if(CommonSettings.single_core())
|
||||
{
|
||||
const NDSDisplayInfo &dispInfo = GPU->GetDisplayInfo();
|
||||
video.srcBuffer = (u8*)dispInfo.masterNativeBuffer;
|
||||
video.srcBuffer = (u8*)dispInfo.masterCustomBuffer;
|
||||
DoDisplay(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue