Fix Xenon build.

This commit is contained in:
Themaister 2012-01-07 11:32:39 +01:00
parent e55dbe944d
commit 1953ea7312
2 changed files with 2 additions and 8 deletions

View File

@ -39,6 +39,8 @@
#ifdef XENON
#include <time/time.h>
#undef PATH_MAX
#define PATH_MAX 4096
#endif
#ifdef HAVE_CONFIG_H

View File

@ -200,11 +200,6 @@ static bool xenon360_gfx_frame(void *data, const void *frame, unsigned width, un
vid->frame_count++;
// update texture viewport
static unsigned old_width = 0;
static unsigned old_height = 0;
ScreenUv[UV_TOP] = ((float) (width) / (float) XE_W)*2;
ScreenUv[UV_LEFT] = ((float) (height) / (float) XE_H)*2;
@ -216,9 +211,6 @@ static bool xenon360_gfx_frame(void *data, const void *frame, unsigned width, un
Xe_VB_Unlock(vid->gl_device, vid->vb);
old_width = width;
old_height = height;
// Refresh texture cache
uint16_t *dst = Xe_Surface_LockRect(vid->gl_device, vid->g_pTexture, 0, 0, 0, 0, XE_LOCK_WRITE);
const uint16_t *src = frame;