mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 14:59:37 +00:00
(Android) Cleanups - remove unneeded gfx_ctx_set_window/gfx_ctx_free_window
This commit is contained in:
parent
82d2ee63dc
commit
d30d345d84
@ -233,16 +233,6 @@ static void gfx_ctx_update_window_title(bool reset)
|
||||
(void)reset;
|
||||
}
|
||||
|
||||
void gfx_ctx_set_window(JNIEnv *jenv,jobject obj, jobject surface)
|
||||
{
|
||||
window = ANativeWindow_fromSurface(jenv, surface);
|
||||
}
|
||||
|
||||
void gfx_ctx_free_window(JNIEnv *jenv,jobject obj, jobject surface)
|
||||
{
|
||||
ANativeWindow_release(window);
|
||||
}
|
||||
|
||||
static void gfx_ctx_get_video_size(unsigned *width, unsigned *height)
|
||||
{
|
||||
(void)width;
|
||||
@ -329,10 +319,6 @@ const gfx_ctx_driver_t gfx_ctx_android = {
|
||||
NULL,
|
||||
gfx_ctx_update_window_title,
|
||||
gfx_ctx_check_window,
|
||||
#ifdef ANDROID
|
||||
gfx_ctx_set_window,
|
||||
gfx_ctx_free_window,
|
||||
#endif
|
||||
gfx_ctx_set_resize,
|
||||
gfx_ctx_has_focus,
|
||||
gfx_ctx_swap_buffers,
|
||||
|
@ -23,12 +23,6 @@
|
||||
#include "../config.h"
|
||||
#endif
|
||||
|
||||
#ifdef ANDROID
|
||||
#include <jni.h>
|
||||
#include <android/native_window.h> /* Requires NDK r5 or newer */
|
||||
#include <android/native_window_jni.h> /* Requires NDK r5 or newer */
|
||||
#endif
|
||||
|
||||
enum gfx_ctx_api
|
||||
{
|
||||
GFX_CTX_OPENGL_API,
|
||||
@ -69,10 +63,6 @@ typedef struct gfx_ctx_driver
|
||||
// Queries for resize and quit events.
|
||||
// Also processes events.
|
||||
void (*check_window)(bool*, bool*, unsigned*, unsigned*, unsigned);
|
||||
#ifdef ANDROID
|
||||
void (*gfx_ctx_set_window)(JNIEnv *jenv, jobject obj, jobject surface);
|
||||
void (*gfx_ctx_free_window)(JNIEnv *jenv, jobject obj, jobject surface);
|
||||
#endif
|
||||
|
||||
// Acknowledge a resize event. This is needed for some APIs. Most backends will ignore this.
|
||||
void (*set_resize)(unsigned, unsigned);
|
||||
|
Loading…
Reference in New Issue
Block a user