Feature: Move video-backend.c to a sensible place

This commit is contained in:
Vicki Pfau 2023-04-19 05:35:36 -07:00
parent 727ba5b2f2
commit 5f6948351b
8 changed files with 6 additions and 10 deletions

View File

@ -747,11 +747,6 @@ elseif(BUILD_GLES2)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libgles2")
endif()
if(USE_EPOXY OR BUILD_GL OR BUILD_GLES2)
# This file should probably go somewhere else
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/platform/video-backend.c)
endif()
if(WIN32 AND NOT (LIBMGBA_ONLY OR SKIP_LIBRARY OR USE_EPOXY))
message(FATAL_ERROR "Windows requires epoxy module!")
endif()

View File

@ -3,6 +3,7 @@ set(SOURCE_FILES
commandline.c
thread-proxy.c
updater.c
video-backend.c
video-logger.c)
set(GUI_FILES

View File

@ -3,7 +3,7 @@
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "video-backend.h"
#include <mgba/feature/video-backend.h>
void VideoBackendGetFrame(const struct VideoBackend* v, struct mRectangle* frame) {
memset(frame, 0, sizeof(*frame));

View File

@ -21,7 +21,7 @@ CXX_GUARD_START
#include <GL/gl.h>
#endif
#include "platform/video-backend.h"
#include <mgba/feature/video-backend.h>
struct mGLContext {
struct VideoBackend d;

View File

@ -24,7 +24,7 @@ CXX_GUARD_START
#include <GLES2/gl2.h>
#endif
#include "platform/video-backend.h"
#include <mgba/feature/video-backend.h>
union mGLES2UniformValue {
GLfloat f;

View File

@ -37,7 +37,7 @@
#include "CoreController.h"
#include "VideoProxy.h"
#include "platform/video-backend.h"
#include <mgba/feature/video-backend.h>
class QOpenGLPaintDevice;
class QOpenGLWidget;

View File

@ -19,8 +19,8 @@
#include <QSpinBox>
#include <mgba/core/version.h>
#include <mgba/feature/video-backend.h>
#include <mgba-util/vfs.h>
#include "platform/video-backend.h"
#if defined(BUILD_GL) || defined(BUILD_GLES2)