diff --git a/Makefile.griffin b/Makefile.griffin index 52da48a8ed..7578809f1f 100644 --- a/Makefile.griffin +++ b/Makefile.griffin @@ -430,7 +430,7 @@ else ifeq ($(platform), windows_msvc2005_x86) CXX = cl.exe LD = link.exe - PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0410 -D__STDC_CONSTANT_MACROS -D_MBCS -DHAVE_EASTEREGG + PLATCFLAGS += -D_WIN32 -D_WIN32_WINNT=0x0410 -D__STDC_CONSTANT_MACROS -D_MBCS -DHAVE_EASTEREGG -D__MMX__ -D__SSE__ -DHAVE_OPENGL -DHAVE_OPENGL1 -DHAVE_GLSL -DHAVE_SHADERPIPELINE -DHAVE_OZONE LDFLAGS += shell32.lib user32.lib gdi32.lib comdlg32.lib winmm.lib ole32.lib msimg32.lib PATH := $(shell IFS=$$'\n'; cygpath "$(VS80COMNTOOLS)../../VC/bin"):$(PATH) diff --git a/libretro-common/gfx/scaler/pixconv.c b/libretro-common/gfx/scaler/pixconv.c index 4f24fce4d7..9594ea8c39 100644 --- a/libretro-common/gfx/scaler/pixconv.c +++ b/libretro-common/gfx/scaler/pixconv.c @@ -254,7 +254,7 @@ void conv_rgb565_argb8888(void *output_, const void *input_, { __m64 res_lo, res_hi; __m64 res_lo_bg, res_hi_bg, res_lo_ra, res_hi_ra; - const __m64 in = _mm_cvtsi64_m64(*((int64_t*)(input + w))); + const __m64 in = *((__m64*)(input + w)); __m64 r = _mm_and_si64(_mm_srli_pi16(in, 1), pix_mask_r); __m64 g = _mm_and_si64(in, pix_mask_g); __m64 b = _mm_and_si64(_mm_slli_pi16(in, 5), pix_mask_b); @@ -273,8 +273,8 @@ void conv_rgb565_argb8888(void *output_, const void *input_, res_hi = _mm_or_si64(res_hi_bg, _mm_slli_si64(res_hi_ra, 16)); - *((int64_t*)(output + w + 0)) = _mm_cvtm64_si64(res_lo); - *((int64_t*)(output + w + 2)) = _mm_cvtm64_si64(res_hi); + *((__m64*)(output + w + 0)) = res_lo; + *((__m64*)(output + w + 2)) = res_hi; } _mm_empty(); @@ -411,7 +411,7 @@ void conv_rgba4444_argb8888(void *output_, const void *input_, { __m64 res_lo, res_hi; __m64 res_lo_bg, res_hi_bg, res_lo_ra, res_hi_ra; - const __m64 in = _mm_cvtsi64_m64(*((int64_t*)(input + w))); + const __m64 in = *((__m64*)(input + w)); __m64 r = _mm_and_si64(_mm_srli_pi16(in, 2), pix_mask_r); __m64 g = _mm_and_si64(in, pix_mask_g); __m64 b = _mm_and_si64(_mm_slli_pi16(in, 4), pix_mask_b); @@ -430,8 +430,8 @@ void conv_rgba4444_argb8888(void *output_, const void *input_, res_hi = _mm_or_si64(res_hi_bg, _mm_slli_si64(res_hi_ra, 16)); - *((int64_t*)(output + w + 0)) = _mm_cvtm64_si64(res_lo); - *((int64_t*)(output + w + 2)) = _mm_cvtm64_si64(res_hi); + *((__m64*)(output + w + 0)) = res_lo; + *((__m64*)(output + w + 2)) = res_hi; } _mm_empty(); diff --git a/menu/drivers/ozone/ozone.c b/menu/drivers/ozone/ozone.c index c8f738c487..f0761a9ea8 100644 --- a/menu/drivers/ozone/ozone.c +++ b/menu/drivers/ozone/ozone.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "../menu_generic.h" @@ -1213,7 +1214,7 @@ static void ozone_frame(void *data, video_frame_info_t *video_info) menu_animation_push(&entry); } - ozone_draw_backdrop(video_info, fmin(ozone->animations.messagebox_alpha, 0.75f)); + ozone_draw_backdrop(video_info, float_min(ozone->animations.messagebox_alpha, 0.75f)); if (draw_osk) {