mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
Cleanups/warning fixes - compilation fix for OSX PPC
This commit is contained in:
parent
908974dfe4
commit
221df13250
@ -480,19 +480,20 @@ static void cocoagl_gfx_ctx_get_video_size(void *data, unsigned* width, unsigned
|
||||
{
|
||||
float screenscale = cocoagl_gfx_ctx_get_native_scale();
|
||||
#if defined(HAVE_COCOA) || defined(HAVE_COCOA_METAL)
|
||||
CGRect size;
|
||||
CGRect size, cgrect;
|
||||
GLsizei backingPixelWidth, backingPixelHeight;
|
||||
#if defined(HAVE_COCOA_METAL)
|
||||
NSView *g_view = apple_platform.renderView;
|
||||
#elif defined(HAVE_COCOA)
|
||||
CocoaView *g_view = g_instance;
|
||||
#endif
|
||||
CGRect cgrect = NSRectToCGRect([g_view frame]);
|
||||
#if MAC_OS_X_VERSION_10_7
|
||||
SEL selector = NSSelectorFromString(BOXSTRING("convertRectToBacking:"));
|
||||
if ([g_view respondsToSelector:selector])
|
||||
cgrect = NSRectToCGRect([g_view convertRectToBacking:[g_view bounds]]);
|
||||
else
|
||||
#endif
|
||||
cgrect = NSRectToCGRect([g_view frame]);
|
||||
backingPixelWidth = CGRectGetWidth(cgrect);
|
||||
backingPixelHeight = CGRectGetHeight(cgrect);
|
||||
size = CGRectMake(0, 0, backingPixelWidth, backingPixelHeight);
|
||||
|
@ -1168,7 +1168,7 @@ const char *video_shader_to_str(enum rarch_shader_type type)
|
||||
bool video_shader_is_supported(enum rarch_shader_type type)
|
||||
{
|
||||
gfx_ctx_flags_t flags;
|
||||
enum display_flags testflag;
|
||||
enum display_flags testflag = GFX_CTX_FLAGS_NONE;
|
||||
|
||||
flags.flags = 0;
|
||||
|
||||
|
@ -2933,6 +2933,7 @@ static void handle_translation_cb(
|
||||
video_driver_frame(raw_output_data, image_width, image_height, pitch);
|
||||
}
|
||||
|
||||
#ifdef HAVE_AUDIOMIXER
|
||||
if (raw_sound_data)
|
||||
{
|
||||
audio_mixer_stream_params_t params;
|
||||
@ -2965,6 +2966,7 @@ static void handle_translation_cb(
|
||||
free(params.basename);
|
||||
free(img);
|
||||
}
|
||||
#endif
|
||||
|
||||
finish:
|
||||
if (error)
|
||||
@ -10863,7 +10865,7 @@ static void input_overlay_auto_rotate(input_overlay_t *ol)
|
||||
enum overlay_orientation active_overlay_orientation = OVERLAY_ORIENTATION_NONE;
|
||||
bool next_overlay_found = false;
|
||||
bool tmp = false;
|
||||
unsigned next_overlay_index;
|
||||
unsigned next_overlay_index = 0;
|
||||
size_t i;
|
||||
|
||||
/* Sanity check */
|
||||
|
@ -856,7 +856,8 @@ enum display_metric_types
|
||||
|
||||
enum display_flags
|
||||
{
|
||||
GFX_CTX_FLAGS_GL_CORE_CONTEXT = 0,
|
||||
GFX_CTX_FLAGS_NONE = 0,
|
||||
GFX_CTX_FLAGS_GL_CORE_CONTEXT,
|
||||
GFX_CTX_FLAGS_MULTISAMPLING,
|
||||
GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES,
|
||||
GFX_CTX_FLAGS_HARD_SYNC,
|
||||
|
Loading…
x
Reference in New Issue
Block a user