From 07b3066474e48b1a535b51c686cae5558e52a7c4 Mon Sep 17 00:00:00 2001 From: "Chris \"koying\" Browet" Date: Tue, 22 Jan 2013 17:09:38 +0100 Subject: [PATCH] FIX: non-rpi egl fails to compile --- xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp b/xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp index 5930adb..4184665 100644 --- a/xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp +++ b/xbmc/windowing/egl/EGLNativeTypeRaspberryPI.cpp @@ -362,6 +362,7 @@ bool CEGLNativeTypeRaspberryPI::SetNativeResolution(const RESOLUTION_INFO &res) #endif } +#if defined(TARGET_RASPBERRY_PI) static float get_display_aspect_ratio(HDMI_ASPECT_T aspect) { float display_aspect; @@ -389,6 +390,7 @@ static float get_display_aspect_ratio(SDTV_ASPECT_T aspect) } return display_aspect; } +#endif bool CEGLNativeTypeRaspberryPI::ProbeResolutions(std::vector &resolutions) { -- 2.7.4