Skip to content

Commit 069fb55

Browse files
committed
Rename graphics context drivers
1 parent 11bcc24 commit 069fb55

30 files changed

+36
-36
lines changed

Makefile.common

+14-14
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ ifeq ($(HAVE_WINXINPUT), 1)
346346
endif
347347

348348
ifeq ($(HAVE_X11), 1)
349-
OBJ += input/drivers/x11_input.o gfx/context/x11_common.o input/keyboard_event_x11.o
349+
OBJ += input/drivers/x11_input.o gfx/drivers_context/x11_common.o input/keyboard_event_x11.o
350350
LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS)
351351
DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
352352
endif
@@ -375,55 +375,55 @@ ifeq ($(HAVE_OPENGL), 1)
375375
OBJ += gfx/drivers/gl.o \
376376
gfx/gl_common.o \
377377
gfx/video_context_driver.o \
378-
gfx/context/gfx_null_ctx.o \
378+
gfx/drivers_context/gfx_null_ctx.o \
379379
gfx/fonts/gl_font.o \
380380
gfx/fonts/gl_raster_font.o \
381381
libretro-sdk/gfx/math/matrix_4x4.o \
382382
gfx/video_state_tracker.o \
383383
libretro-sdk/glsym/rglgen.o
384384

385385
ifeq ($(HAVE_KMS), 1)
386-
OBJ += gfx/context/drm_egl_ctx.o
386+
OBJ += gfx/drivers_context/drm_egl_ctx.o
387387
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
388388
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
389389
endif
390390

391391
ifeq ($(HAVE_VIDEOCORE), 1)
392-
OBJ += gfx/context/vc_egl_ctx.o
392+
OBJ += gfx/drivers_context/vc_egl_ctx.o
393393
DEFINES += $(EGL_CFLAGS)
394394
LIBS += $(EGL_LIBS)
395395
endif
396396

397397
ifeq ($(HAVE_EMSCRIPTEN), 1)
398-
OBJ += gfx/context/emscriptenegl_ctx.o
398+
OBJ += gfx/drivers_context/emscriptenegl_ctx.o
399399
endif
400400

401401
ifeq ($(HAVE_MALI_FBDEV), 1)
402-
OBJ += gfx/context/mali_fbdev_ctx.o
402+
OBJ += gfx/drivers_context/mali_fbdev_ctx.o
403403
DEFINES += $(EGL_CFLAGS)
404404
LIBS += $(EGL_LIBS)
405405
endif
406406

407407
ifeq ($(HAVE_VIVANTE_FBDEV), 1)
408-
OBJ += gfx/context/vivante_fbdev_ctx.o
408+
OBJ += gfx/drivers_context/vivante_fbdev_ctx.o
409409
DEFINES += $(EGL_CFLAGS)
410410
LIBS += $(EGL_LIBS)
411411
endif
412412

413413
ifeq ($(HAVE_X11), 1)
414414
ifeq ($(HAVE_GLES), 0)
415-
OBJ += gfx/context/glx_ctx.o
415+
OBJ += gfx/drivers_context/glx_ctx.o
416416
endif
417417
ifeq ($(HAVE_EGL), 1)
418-
OBJ += gfx/context/xegl_ctx.o
418+
OBJ += gfx/drivers_context/xegl_ctx.o
419419
DEFINES += $(EGL_CFLAGS)
420420
LIBS += $(EGL_LIBS)
421421
endif
422422
endif
423423

424424
ifeq ($(HAVE_WAYLAND), 1)
425425
ifeq ($(HAVE_EGL), 1)
426-
OBJ += gfx/context/wayland_ctx.o
426+
OBJ += gfx/drivers_context/wayland_ctx.o
427427
endif
428428
endif
429429

@@ -441,7 +441,7 @@ ifeq ($(HAVE_OPENGL), 1)
441441
LIBS += -framework OpenGL
442442
else ifneq ($(findstring Win32,$(OS)),)
443443
LIBS += -lopengl32 -lgdi32 -lcomdlg32
444-
OBJ += gfx/context/wgl_ctx.o
444+
OBJ += gfx/drivers_context/wgl_ctx.o
445445
else
446446
LIBS += -lGL
447447
endif
@@ -459,7 +459,7 @@ ifeq ($(HAVE_SDL), 1)
459459
OBJ += gfx/drivers/sdl_gfx.o input/drivers/sdl_input.o input/drivers_joypad/sdl_joypad.o audio/drivers/sdl_audio.o
460460

461461
ifeq ($(HAVE_OPENGL), 1)
462-
OBJ += gfx/context/sdl_gl_ctx.o
462+
OBJ += gfx/drivers_context/sdl_gl_ctx.o
463463
endif
464464

465465
JOYCONFIG_LIBS += $(SDL_LIBS)
@@ -471,7 +471,7 @@ ifeq ($(HAVE_SDL2), 1)
471471
OBJ += gfx/drivers/sdl2_gfx.o input/drivers/sdl_input.o input/drivers_joypad/sdl_joypad.o audio/drivers/sdl_audio.o
472472

473473
ifeq ($(HAVE_OPENGL), 1)
474-
OBJ += gfx/context/sdl_gl_ctx.o
474+
OBJ += gfx/drivers_context/sdl_gl_ctx.o
475475
endif
476476

477477
JOYCONFIG_LIBS += $(SDL2_LIBS)
@@ -514,7 +514,7 @@ ifeq ($(HAVE_D3D9), 1)
514514
gfx/d3d/d3d_wrapper.o \
515515
gfx/fonts/d3d_font.o \
516516
gfx/fonts/d3d_w32_font.o \
517-
gfx/context/d3d_ctx.o
517+
gfx/drivers_context/d3d_ctx.o
518518
DEFINES += -DHAVE_WIN32_D3D9
519519
LIBS += -ld3d9 -ld3dx9 -ldxguid
520520

Makefile.emscripten

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ clean:
7676
rm -f gfx/scaler/*.o
7777
rm -f gfx/*.o
7878
rm -f gfx/d3d/*.o
79-
rm -f gfx/context/*.o
79+
rm -f gfx/drivers_context/*.o
8080
rm -f gfx/math/*.o
8181
rm -f gfx/fonts/*.o
8282
rm -f gfx/py_state/*.o

Makefile.pandora

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ clean:
4141
rm -f conf/*.o
4242
rm -f gfx/*.o
4343
rm -f gfx/fonts/*.o
44-
rm -f gfx/context/*.o
44+
rm -f gfx/drivers_context/*.o
4545
rm -f gfx/py_state/*.o
4646
rm -f compat/*.o
4747
rm -f record/*.o

driver.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "gfx/gfx_common.h"
2525

2626
#ifdef HAVE_X11
27-
#include "gfx/context/x11_common.h"
27+
#include "gfx/drivers_context/x11_common.h"
2828
#endif
2929

3030
#ifdef HAVE_MENU

gfx/d3d/d3d.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#endif
2727
#include "../gfx_common.h"
2828

29-
#include "../context/win32_common.h"
29+
#include "../drivers_context/win32_common.h"
3030

3131
#ifndef _XBOX
3232
#define HAVE_MONITOR

gfx/d3d/d3d_wrapper.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef _D3D_WRAPPER_H
1818
#define _D3D_WRAPPER_H
1919

20-
#include "../context/win32_common.h"
20+
#include "../drivers_context/win32_common.h"
2121
#include "d3d_defines.h"
2222

2323
void d3d_swap(void *data, LPDIRECT3DDEVICE dev);

gfx/drivers/sdl2_gfx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "../fonts/fonts.h"
2828

2929
#ifdef HAVE_X11
30-
#include "../context/x11_common.h"
30+
#include "../drivers_context/x11_common.h"
3131
#endif
3232

3333
#ifdef HAVE_CONFIG_H

gfx/drivers/sdl_gfx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "../fonts/fonts.h"
2626

2727
#ifdef HAVE_X11
28-
#include "../context/x11_common.h"
28+
#include "../drivers_context/x11_common.h"
2929
#endif
3030

3131
#ifdef HAVE_CONFIG_H

gfx/drivers/xvideo.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "../gfx_common.h"
2323
#include "../fonts/fonts.h"
2424

25-
#include "../context/x11_common.h"
25+
#include "../drivers_context/x11_common.h"
2626

2727
#include <X11/Xlib.h>
2828
#include <X11/Xutil.h>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

gfx/image/image.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <boolean.h>
2222

2323
#ifdef _WIN32
24-
#include "../context/win32_common.h"
24+
#include "../drivers_context/win32_common.h"
2525
#ifdef _XBOX1
2626
#include "../d3d/d3d_defines.h"
2727
#endif

griffin/griffin.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -87,45 +87,45 @@ VIDEO CONTEXT
8787
============================================================ */
8888

8989
#include "../gfx/video_context_driver.c"
90-
#include "../gfx/context/gfx_null_ctx.c"
90+
#include "../gfx/drivers_context/gfx_null_ctx.c"
9191

9292
#if defined(__CELLOS_LV2__)
93-
#include "../gfx/context/ps3_ctx.c"
93+
#include "../gfx/drivers_context/ps3_ctx.c"
9494
#elif defined(_XBOX) || defined(HAVE_WIN32_D3D9)
95-
#include "../gfx/context/d3d_ctx.cpp"
95+
#include "../gfx/drivers_context/d3d_ctx.cpp"
9696
#elif defined(ANDROID)
97-
#include "../gfx/context/androidegl_ctx.c"
97+
#include "../gfx/drivers_context/androidegl_ctx.c"
9898
#elif defined(__QNX__)
99-
#include "../gfx/context/bbqnx_ctx.c"
99+
#include "../gfx/drivers_context/bbqnx_ctx.c"
100100
#elif defined(EMSCRIPTEN)
101-
#include "../gfx/context/emscriptenegl_ctx.c"
101+
#include "../gfx/drivers_context/emscriptenegl_ctx.c"
102102
#endif
103103

104104

105105
#if defined(HAVE_OPENGL)
106106

107107
#if defined(HAVE_KMS)
108-
#include "../gfx/context/drm_egl_ctx.c"
108+
#include "../gfx/drivers_context/drm_egl_ctx.c"
109109
#endif
110110
#if defined(HAVE_VIDEOCORE)
111-
#include "../gfx/context/vc_egl_ctx.c"
111+
#include "../gfx/drivers_context/vc_egl_ctx.c"
112112
#endif
113113
#if defined(HAVE_X11) && !defined(HAVE_OPENGLES)
114-
#include "../gfx/context/glx_ctx.c"
114+
#include "../gfx/drivers_context/glx_ctx.c"
115115
#endif
116116

117117
#if defined(HAVE_EGL)
118-
#include "../gfx/context/xegl_ctx.c"
118+
#include "../gfx/drivers_context/xegl_ctx.c"
119119
#endif
120120

121121
#if defined(_WIN32) && !defined(_XBOX)
122-
#include "../gfx/context/wgl_ctx.c"
122+
#include "../gfx/drivers_context/wgl_ctx.c"
123123
#endif
124124

125125
#endif
126126

127127
#ifdef HAVE_X11
128-
#include "../gfx/context/x11_common.c"
128+
#include "../gfx/drivers_context/x11_common.c"
129129
#endif
130130

131131

input/keyboard_event_win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "../general.h"
1818
#include "keyboard_line.h"
19-
#include "../gfx/context/win32_common.h"
19+
#include "../gfx/drivers_context/win32_common.h"
2020
#include "input_common.h"
2121
#include "input_keymaps.h"
2222

0 commit comments

Comments
 (0)