Move refresh.c into the client and rename to glimp_sdl.c.

The GL backends have been an integral part of the vid interface for
years.
This commit is contained in:
Yamagi Burmeister 2018-08-07 10:08:20 +02:00
parent b805b4e044
commit 5bff7e1568
3 changed files with 3 additions and 3 deletions

View file

@ -164,7 +164,6 @@ endif()
set(Backends-Generic-Source set(Backends-Generic-Source
${BACKENDS_SRC_DIR}/generic/misc.c ${BACKENDS_SRC_DIR}/generic/misc.c
${BACKENDS_SRC_DIR}/sdl/refresh.c
) )
set(Backends-Unix-Source set(Backends-Unix-Source
@ -318,6 +317,7 @@ set(Client-Source
${CLIENT_SRC_DIR}/sound/sdl.c ${CLIENT_SRC_DIR}/sound/sdl.c
${CLIENT_SRC_DIR}/sound/sound.c ${CLIENT_SRC_DIR}/sound/sound.c
${CLIENT_SRC_DIR}/sound/wave.c ${CLIENT_SRC_DIR}/sound/wave.c
${CLIENT_SRC_DIR}/vid/glimp_sdl.c
${CLIENR_SRC_DIR}/vid/vid.c ${CLIENR_SRC_DIR}/vid/vid.c
${COMMON_SRC_DIR}/argproc.c ${COMMON_SRC_DIR}/argproc.c
${COMMON_SRC_DIR}/clientserver.c ${COMMON_SRC_DIR}/clientserver.c

View file

@ -691,7 +691,6 @@ GAME_OBJS_ = \
# Used by the client # Used by the client
CLIENT_OBJS_ := \ CLIENT_OBJS_ := \
src/backends/generic/misc.o \ src/backends/generic/misc.o \
src/backends/sdl/refresh.o \
src/client/cl_cin.o \ src/client/cl_cin.o \
src/client/cl_console.o \ src/client/cl_console.o \
src/client/cl_download.o \ src/client/cl_download.o \
@ -719,6 +718,7 @@ CLIENT_OBJS_ := \
src/client/sound/qal.o \ src/client/sound/qal.o \
src/client/sound/sound.o \ src/client/sound/sound.o \
src/client/sound/wave.o \ src/client/sound/wave.o \
src/client/vid/glimp_sdl.o \
src/client/vid/vid.o \ src/client/vid/vid.o \
src/common/argproc.o \ src/common/argproc.o \
src/common/clientserver.o \ src/common/clientserver.o \

View file

@ -97,7 +97,7 @@ GetWindowSize(int* w, int* h)
static void static void
SetSDLIcon() SetSDLIcon()
{ {
#include "icon/q2icon64.h" // 64x64 32 Bit #include "../../backends/sdl/icon/q2icon64.h" // 64x64 32 Bit
/* these masks are needed to tell SDL_CreateRGBSurface(From) /* these masks are needed to tell SDL_CreateRGBSurface(From)
to assume the data it gets is byte-wise RGB(A) data */ to assume the data it gets is byte-wise RGB(A) data */