fix menubar in DirectDraw triple buffer mode
clean up old #define in sound.cpp
This commit is contained in:
parent
e11009c271
commit
3b165421d4
|
@ -387,22 +387,15 @@ inline void interp_push(int ch, int sample)
|
||||||
interp[ch]->push(sample);
|
interp[ch]->push(sample);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENHANCED_RATE
|
|
||||||
inline int interp_pop(int ch, double rate)
|
|
||||||
{
|
|
||||||
return interp[ch]->pop(rate);
|
|
||||||
#else
|
|
||||||
inline int interp_pop(int ch)
|
inline int interp_pop(int ch)
|
||||||
{
|
{
|
||||||
return interp[ch]->pop();
|
return interp[ch]->pop();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// *** End snd_interp code
|
// *** End snd_interp code
|
||||||
|
|
||||||
static void soundEventGB(u32 address, u8 data)
|
static void soundEventGB(u32 address, u8 data)
|
||||||
{
|
{
|
||||||
if ( apu )
|
if ( apu )
|
||||||
{
|
{
|
||||||
int divisor = 4 * soundQuality;
|
int divisor = 4 * soundQuality;
|
||||||
|
|
|
@ -837,11 +837,7 @@ void DirectDrawDisplay::render()
|
||||||
pDirectDraw->FlipToGDISurface();
|
pDirectDraw->FlipToGDISurface();
|
||||||
ddsPrimary->SetClipper(ddsClipper);
|
ddsPrimary->SetClipper(ddsClipper);
|
||||||
hret = ddsPrimary->Blt(&theApp.dest, ddsFlip, NULL, DDBLT_ASYNC, NULL);
|
hret = ddsPrimary->Blt(&theApp.dest, ddsFlip, NULL, DDBLT_ASYNC, NULL);
|
||||||
// if using emulation only, then we have to redraw the menu
|
theApp.m_pMainWnd->DrawMenuBar();
|
||||||
// everytime. It seems like a bug in DirectDraw to me as we not
|
|
||||||
// overwritting the menu area at all.
|
|
||||||
if(theApp.ddrawUsingEmulationOnly)
|
|
||||||
theApp.m_pMainWnd->DrawMenuBar();
|
|
||||||
} else
|
} else
|
||||||
hret = ddsPrimary->Flip(NULL, 0);
|
hret = ddsPrimary->Flip(NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue