mirror of
https://github.com/libretro/RetroArch
synced 2025-01-27 03:35:22 +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);
|
||||
}
|
||||
|
||||
bool win32_window_init(void *data, bool fullscreen)
|
||||
bool win32_window_init(WNDCLASSEX *wndclass, bool fullscreen)
|
||||
{
|
||||
#ifndef _XBOX
|
||||
WNDCLASSEX *wndclass = (WNDCLASSEX*)data;
|
||||
|
||||
if (!wndclass)
|
||||
return false;
|
||||
|
||||
wndclass->cbSize = sizeof(WNDCLASSEX);
|
||||
wndclass->style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
|
||||
wndclass->lpfnWndProc = WndProc;
|
||||
|
@ -29,6 +29,7 @@
|
||||
#include "../video_context_driver.h"
|
||||
|
||||
#ifndef _XBOX
|
||||
#include "../../defines/xdk_defines.h"
|
||||
#include "../drivers_wm/win32_resource.h"
|
||||
|
||||
extern unsigned g_resize_width;
|
||||
@ -59,7 +60,7 @@ bool win32_set_video_mode(void *data,
|
||||
bool win32_monitor_set_fullscreen(unsigned width,
|
||||
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,
|
||||
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.cond_lock);
|
||||
#ifdef HAVE_OVERLAY
|
||||
rarch_main_data_overlay_thread_uninit();
|
||||
#endif
|
||||
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;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
nbio_begin_read(handle);
|
||||
|
Loading…
x
Reference in New Issue
Block a user