mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(XBOX) Some build fixes
This commit is contained in:
parent
e1ed720841
commit
ed0e5c37e2
@ -245,14 +245,9 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
|
|||||||
return DefWindowProc(hwnd, message, wparam, lparam);
|
return DefWindowProc(hwnd, message, wparam, lparam);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool win32_window_init(void *data, bool fullscreen)
|
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen)
|
||||||
{
|
{
|
||||||
#ifndef _XBOX
|
#ifndef _XBOX
|
||||||
WNDCLASSEX *wndclass = (WNDCLASSEX*)data;
|
|
||||||
|
|
||||||
if (!wndclass)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
wndclass->cbSize = sizeof(WNDCLASSEX);
|
wndclass->cbSize = sizeof(WNDCLASSEX);
|
||||||
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
||||||
wndclass->lpfnWndProc = WndProc;
|
wndclass->lpfnWndProc = WndProc;
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "../video_context_driver.h"
|
#include "../video_context_driver.h"
|
||||||
|
|
||||||
#ifndef _XBOX
|
#ifndef _XBOX
|
||||||
|
#include "../../defines/xdk_defines.h"
|
||||||
#include "../drivers_wm/win32_resource.h"
|
#include "../drivers_wm/win32_resource.h"
|
||||||
|
|
||||||
extern unsigned g_resize_width;
|
extern unsigned g_resize_width;
|
||||||
@ -59,7 +60,7 @@ bool win32_set_video_mode(void *data,
|
|||||||
bool win32_monitor_set_fullscreen(unsigned width,
|
bool win32_monitor_set_fullscreen(unsigned width,
|
||||||
unsigned height, unsigned refresh, char *dev_name);
|
unsigned height, unsigned refresh, char *dev_name);
|
||||||
|
|
||||||
bool win32_window_init(void *wndclass, bool fullscreen);
|
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen);
|
||||||
|
|
||||||
bool win32_window_create(void *data, unsigned style,
|
bool win32_window_create(void *data, unsigned style,
|
||||||
RECT *mon_rect, unsigned width,
|
RECT *mon_rect, unsigned width,
|
||||||
|
@ -68,7 +68,9 @@ static void data_runloop_thread_deinit(void)
|
|||||||
|
|
||||||
slock_free(g_data_runloop.lock);
|
slock_free(g_data_runloop.lock);
|
||||||
slock_free(g_data_runloop.cond_lock);
|
slock_free(g_data_runloop.cond_lock);
|
||||||
|
#ifdef HAVE_OVERLAY
|
||||||
rarch_main_data_overlay_thread_uninit();
|
rarch_main_data_overlay_thread_uninit();
|
||||||
|
#endif
|
||||||
scond_free(g_data_runloop.cond);
|
scond_free(g_data_runloop.cond);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -545,6 +545,8 @@ static int rarch_main_data_nbio_iterate_poll(nbio_handle_t *nbio)
|
|||||||
nbio->cb = &cb_nbio_image_menu_boxart;
|
nbio->cb = &cb_nbio_image_menu_boxart;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
nbio_begin_read(handle);
|
nbio_begin_read(handle);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user