mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Fix CXX_BUILD
This commit is contained in:
parent
135ee2f503
commit
bbc63f7e99
@ -25,6 +25,10 @@
|
||||
typedef float GRfloat;
|
||||
typedef unsigned int GRuint;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct gfx_fbo_rect
|
||||
{
|
||||
unsigned img_width;
|
||||
@ -88,4 +92,8 @@ bool gfx_coord_array_add(gfx_coord_array_t *ca,
|
||||
|
||||
void gfx_coord_array_free(gfx_coord_array_t *ca);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -80,21 +80,27 @@ static int input_try_autoconfigure_joypad_from_conf(config_file_t *conf,
|
||||
&& input_pid != 0)
|
||||
{
|
||||
score += 3;
|
||||
//RARCH_LOG("Autoconf: VID/PID match score=%d\n", score);
|
||||
#if 0
|
||||
RARCH_LOG("Autoconf: VID/PID match score=%d\n", score);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Check for name match */
|
||||
if (!strcmp(ident, params->name))
|
||||
{
|
||||
score += 2;
|
||||
//RARCH_LOG("Autoconf: exact name match score=%d\n", score);
|
||||
#if 0
|
||||
RARCH_LOG("Autoconf: exact name match score=%d\n", score);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ident[0] != '\0' && !strncmp(params->name, ident, strlen(ident)))
|
||||
{
|
||||
score += 1;
|
||||
//RARCH_LOG("Autoconf: partial name match score=%d\n", score);
|
||||
#if 0
|
||||
RARCH_LOG("Autoconf: partial name match score=%d\n", score);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
RARCH_LOG("Autoconf: configuration score=%d\n", score);
|
||||
|
@ -20,6 +20,10 @@
|
||||
#include <stdint.h>
|
||||
#include <boolean.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum image_process_code
|
||||
{
|
||||
IMAGE_PROCESS_ERROR = -2,
|
||||
@ -51,4 +55,8 @@ bool texture_image_color_convert(unsigned r_shift,
|
||||
bool texture_image_load(struct texture_image *img, const char *path);
|
||||
void texture_image_free(struct texture_image *img);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -1697,11 +1697,12 @@ static int action_ok_video_resolution(const char *path,
|
||||
#else
|
||||
if (video_driver_get_video_output_size(&width, &height))
|
||||
{
|
||||
char msg[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
video_driver_set_video_mode(width, height, true);
|
||||
global->console.screen.resolutions.width = width;
|
||||
global->console.screen.resolutions.height = height;
|
||||
|
||||
char msg[PATH_MAX_LENGTH] = {0};
|
||||
snprintf(msg, sizeof(msg),"Applying: %dx%d\n START to reset",width, height);
|
||||
rarch_main_msg_queue_push(msg, 1, 100, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user