mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Revert "Should save font renderer API now"
This reverts commit 92632a4dbb8d8ba740a3ec7ea6fbcc7e247c4e57.
This commit is contained in:
parent
92632a4dbb
commit
c49754fc72
@ -17,8 +17,6 @@
|
|||||||
#include "font_driver.h"
|
#include "font_driver.h"
|
||||||
#include "../general.h"
|
#include "../general.h"
|
||||||
|
|
||||||
static enum font_driver_render_api selected_api;
|
|
||||||
|
|
||||||
#ifdef HAVE_D3D
|
#ifdef HAVE_D3D
|
||||||
static const font_renderer_t *d3d_font_backends[] = {
|
static const font_renderer_t *d3d_font_backends[] = {
|
||||||
#if defined(_XBOX1)
|
#if defined(_XBOX1)
|
||||||
@ -118,10 +116,7 @@ bool font_init_first(const void **font_driver, void **font_handle,
|
|||||||
if (font_path && !font_path[0])
|
if (font_path && !font_path[0])
|
||||||
font_path = NULL;
|
font_path = NULL;
|
||||||
|
|
||||||
if (selected_api != FONT_DRIVER_RENDER_DONT_CARE)
|
switch (api)
|
||||||
selected_api = api;
|
|
||||||
|
|
||||||
switch (selected_api)
|
|
||||||
{
|
{
|
||||||
#ifdef HAVE_D3D
|
#ifdef HAVE_D3D
|
||||||
case FONT_DRIVER_RENDER_DIRECT3D_API:
|
case FONT_DRIVER_RENDER_DIRECT3D_API:
|
||||||
|
@ -154,7 +154,7 @@ bool menu_display_font_init_first(const void **font_driver,
|
|||||||
pkt.data.font_init.video_data = video_data;
|
pkt.data.font_init.video_data = video_data;
|
||||||
pkt.data.font_init.font_path = font_path;
|
pkt.data.font_init.font_path = font_path;
|
||||||
pkt.data.font_init.font_size = font_size;
|
pkt.data.font_init.font_size = font_size;
|
||||||
pkt.data.font_init.api = FONT_DRIVER_RENDER_DONT_CARE;
|
pkt.data.font_init.api = FONT_DRIVER_RENDER_OPENGL_API;
|
||||||
|
|
||||||
thr->send_and_wait(thr, &pkt);
|
thr->send_and_wait(thr, &pkt);
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ bool menu_display_font_init_first(const void **font_driver,
|
|||||||
}
|
}
|
||||||
|
|
||||||
return font_init_first(font_driver, font_handle, video_data,
|
return font_init_first(font_driver, font_handle, video_data,
|
||||||
font_path, font_size, FONT_DRIVER_RENDER_DONT_CARE);
|
font_path, font_size, FONT_DRIVER_RENDER_OPENGL_API);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool menu_display_font_bind_block(void *data, const void *font_data, void *userdata)
|
bool menu_display_font_bind_block(void *data, const void *font_data, void *userdata)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user