Turn win32_common and wgl_ctx into C++

This commit is contained in:
twinaphex 2015-11-11 20:07:06 +01:00
parent 3d20af9135
commit 9deeececf1
5 changed files with 12 additions and 17 deletions

View File

@ -28,10 +28,6 @@
#include "../../driver.h"
#include "../video_context_driver.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _XBOX
#include "../drivers_wm/win32_resource.h"
@ -71,8 +67,4 @@ void win32_show_cursor(bool state);
void win32_check_window(bool *quit,
bool *resize, unsigned *width, unsigned *height);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -103,13 +103,6 @@ CHEATS
#include "../cheats.c"
#include "../libretro-common/hash/rhash.c"
/*============================================================
UI COMMON CONTEXT
============================================================ */
#if defined(_WIN32)
#include "../gfx/common/win32_common.c"
#endif
/*============================================================
VIDEO CONTEXT
============================================================ */
@ -139,9 +132,7 @@ VIDEO CONTEXT
#include "../gfx/drivers_context/vc_egl_ctx.c"
#endif
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/drivers_context/wgl_ctx.c"
#include "../gfx/drivers_wm/win32_shader_dlg.c"
#endif

View File

@ -32,6 +32,18 @@ AUDIO
#include "../audio/drivers/xaudio.cpp"
#endif
/*============================================================
UI COMMON CONTEXT
============================================================ */
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/common/win32_common.cpp"
#ifdef HAVE_OPENGL
#include "../gfx/drivers_context/wgl_ctx.cpp"
#endif
#endif
/*============================================================
MENU
============================================================ */