Convert gdi_ctx.cpp to C

This commit is contained in:
twinaphex 2017-08-09 13:56:47 +02:00
parent a4a027be67
commit 795ae524e9
3 changed files with 14 additions and 19 deletions

View File

@ -126,7 +126,8 @@ static void gfx_ctx_gdi_get_video_size(void *data,
}
}
static void *gfx_ctx_gdi_init(video_frame_info_t *video_info, void *video_driver)
static void *gfx_ctx_gdi_init(
video_frame_info_t *video_info, void *video_driver)
{
WNDCLASSEX wndclass = {0};

View File

@ -166,9 +166,21 @@ VIDEO CONTEXT
#include "../gfx/drivers_context/gfx_null_ctx.c"
#if defined(_WIN32) && !defined(_XBOX)
#if defined(HAVE_OPENGL) || defined(HAVE_VULKAN)
#include "../gfx/drivers_context/wgl_ctx.c"
#endif
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/drivers_context/gdi_ctx.c"
#endif
#if defined(HAVE_FFMPEG)
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES3)
#include "../cores/libretro-ffmpeg/ffmpeg_fft.c"
#endif
#endif
#endif
#if defined(__CELLOS_LV2__)

View File

@ -97,24 +97,6 @@ AUDIO
#include "../audio/drivers/xaudio.cpp"
#endif
/*============================================================
UI COMMON CONTEXT
============================================================ */
#if defined(_WIN32) && !defined(_XBOX)
#if defined(_WIN32) && !defined(_XBOX)
#include "../gfx/drivers_context/gdi_ctx.cpp"
#endif
#if defined(HAVE_FFMPEG)
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES3)
#include "../cores/libretro-ffmpeg/fft/fft.cpp"
#endif
#endif
#endif
/*============================================================
MENU
============================================================ */