(Xbox 1) Build fixes

This commit is contained in:
twinaphex 2012-11-20 03:19:00 +01:00
parent e9dc0faace
commit 1f74056286
2 changed files with 3 additions and 7 deletions

View File

@ -139,7 +139,7 @@ static bool gfx_ctx_xdk_menu_init(void)
#ifdef _XBOX1
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
int width = d3d->d3dpp.BackBufferWidth;
int width = d3d->win_width;
// Load background image
if(width == 640)

View File

@ -193,13 +193,9 @@ static void xdk_d3d_set_viewport(bool force_full)
#if defined(_XBOX1)
// Get the "video mode"
d3d->video_mode = XGetVideoFlags();
width = d3d->d3dpp.BackBufferWidth;
height = d3d->d3dpp.BackBufferHeight;
#elif defined(_XBOX360)
width = d3d->video_mode.fIsHiDef ? 1280 : 640;
height = d3d->video_mode.fIsHiDef ? 720 : 480;
#endif
width = d3d->win_width;
height = d3d->win_width;
m_viewport_x_temp = 0;
m_viewport_y_temp = 0;
m_viewport_width_temp = width;