mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Reach over for Plugin_VideoOGL's copy of GLUtil.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7104 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -151,7 +151,7 @@ bool VideoBackend::Video_Screenshot(const char *_szFilename)
|
||||
// -------------------------------
|
||||
void VideoBackend::Video_EnterLoop()
|
||||
{
|
||||
Fifo_EnterLoop();
|
||||
Fifo_EnterLoop();
|
||||
}
|
||||
|
||||
void VideoBackend::Video_ExitLoop()
|
||||
@ -169,7 +169,7 @@ void VideoBackend::Video_ClearMessages()
|
||||
|
||||
void VideoBackend::Video_SetRendering(bool bEnabled)
|
||||
{
|
||||
Fifo_SetRendering(bEnabled);
|
||||
Fifo_SetRendering(bEnabled);
|
||||
}
|
||||
|
||||
void VideoBackend::Video_WaitForFrameFinish(void)
|
||||
@ -185,4 +185,31 @@ void VideoBackend::Video_AbortFrame(void)
|
||||
{
|
||||
}
|
||||
|
||||
// Draw messages on top of the screen
|
||||
unsigned int VideoBackend::PeekMessages()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
// TODO: peekmessage
|
||||
MSG msg;
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (msg.message == WM_QUIT)
|
||||
return FALSE;
|
||||
TranslateMessage(&msg);
|
||||
DispatchMessage(&msg);
|
||||
}
|
||||
return TRUE;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
// Show the current FPS
|
||||
void VideoBackend::UpdateFPSDisplay(const char *text)
|
||||
{
|
||||
char temp[100];
|
||||
snprintf(temp, sizeof temp, "%s | Software | %s", svn_rev_str, text);
|
||||
OpenGL_SetWindowText(temp);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user