(Xbox 1) Shows menu now

This commit is contained in:
twinaphex 2012-07-24 12:04:26 +02:00
parent 58a3c8ac86
commit 199871955c
3 changed files with 21 additions and 20 deletions

View File

@ -172,10 +172,10 @@ bool CSurface::Render(int x, int y, dword w, dword h)
/*CustomVertex*/DrawVerticeFormats newVerts[] =
{
// x, y, z, color, u ,v
{fX, fY, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 0},
{fX + w, fY, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 1, 0},
{fX + w, fY + h, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 1, 1},
{fX, fY + h, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 1}
{fX, fY, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 0, 0},
{fX + w, fY, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 1, 0},
{fX + w, fY + h, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 1, 1},
{fX, fY + h, 0.0f, /*D3DCOLOR_ARGB(m_byOpacity, m_byR, m_byG, m_byB),*/ 0, 0, 1}
};
// load the existing vertices

View File

@ -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

@ -43,6 +43,7 @@ typedef struct
typedef struct DrawVerticeFormats
{
float x, y, z;
float rhw;
float u, v;
} DrawVerticeFormats;