From ba6f67510ec01c8cc171219d3730a7f7fd2cb423 Mon Sep 17 00:00:00 2001 From: OV2 Date: Thu, 9 May 2024 13:35:52 +0200 Subject: [PATCH] win32: fix warnings --- win32/COpenGL.cpp | 2 +- win32/win32.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/win32/COpenGL.cpp b/win32/COpenGL.cpp index 389ff005..1d8567fd 100644 --- a/win32/COpenGL.cpp +++ b/win32/COpenGL.cpp @@ -139,7 +139,7 @@ bool COpenGL::Initialize(HWND hWnd) { auto defaults = S9xImGuiGetDefaults(); defaults.font_size = GUI.OSDSize; - defaults.spacing = defaults.font_size / 2.4; + defaults.spacing = static_cast(defaults.font_size / 2.4); S9xImGuiInit(&defaults); ImGui_ImplOpenGL3_Init(); Settings.DisplayIndicators = true; diff --git a/win32/win32.cpp b/win32/win32.cpp index 28e71e8c..682492e8 100644 --- a/win32/win32.cpp +++ b/win32/win32.cpp @@ -48,7 +48,6 @@ static int avi_image_size = 0; static uint32 avi_skip_frames = 0; static bool pre_avi_soundsync = true; static uint32 pre_avi_soundinputrate = 32000; -void DoAVIOpen(const char* filename); void DoAVIClose(int reason); void S9xWinScanJoypads ();