(Xbox 1) Menu shows (corrupted) screen now

This commit is contained in:
twinaphex 2012-07-24 11:58:11 +02:00
parent 7b01393941
commit 58a3c8ac86
2 changed files with 18 additions and 19 deletions

View File

@ -49,7 +49,7 @@ int menu_init(void)
g_romList.Load();
// Init input here
g_input.Create();
//g_input.Create();
// Load the font here
g_font.Create();
@ -67,23 +67,23 @@ void menu_free(void) {}
void menu_loop(void)
{
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
//rarch_console_load_game("D:\\ssf2x.gba");
rarch_console_load_game("D:\\ssf2x.gba");
// Loop the app
while (!g_bExit)
{
d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
D3DCOLOR_XRGB(0, 0, 0),
1.0f, 0);
d3d->d3d_render_device->BeginScene();
d3d->d3d_render_device->SetFlickerFilter(g_iniFile.m_currentIniEntry.dwFlickerFilter);
d3d->d3d_render_device->SetSoftDisplayFilter(g_iniFile.m_currentIniEntry.bSoftDisplayFilter);
//while (!g_bExit)
//{
// d3d->d3d_render_device->Clear(0, NULL, D3DCLEAR_TARGET,
// D3DCOLOR_XRGB(0, 0, 0),
// 1.0f, 0);
//
// d3d->d3d_render_device->BeginScene();
// d3d->d3d_render_device->SetFlickerFilter(g_iniFile.m_currentIniEntry.dwFlickerFilter);
// d3d->d3d_render_device->SetSoftDisplayFilter(g_iniFile.m_currentIniEntry.bSoftDisplayFilter);
g_input.GetInput();
g_menuManager.Update();
d3d->d3d_render_device->EndScene();
d3d->d3d_render_device->Present(NULL, NULL, NULL, NULL);
}
// //g_input.GetInput();
// g_menuManager.Update();
//
// d3d->d3d_render_device->EndScene();
// d3d->d3d_render_device->Present(NULL, NULL, NULL, NULL);
//}
}

View File

@ -25,8 +25,7 @@
#define SHOW_DEBUG_INFO
#define DFONT_MAX 4096
#define PRIM_FVF (D3DFVF_XYZRHW | D3DFVF_TEX1)
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ | D3DFVF_NORMAL)
#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW | D3DFVF_TEX1)
#define MIN_SCALING_FACTOR (1.0f)
#define MAX_SCALING_FACTOR (2.0f)