win32: fix warnings

This commit is contained in:
OV2 2024-05-09 13:35:52 +02:00
parent be53955553
commit ba6f67510e
2 changed files with 1 additions and 2 deletions

View File

@ -139,7 +139,7 @@ bool COpenGL::Initialize(HWND hWnd)
{ {
auto defaults = S9xImGuiGetDefaults(); auto defaults = S9xImGuiGetDefaults();
defaults.font_size = GUI.OSDSize; defaults.font_size = GUI.OSDSize;
defaults.spacing = defaults.font_size / 2.4; defaults.spacing = static_cast<int>(defaults.font_size / 2.4);
S9xImGuiInit(&defaults); S9xImGuiInit(&defaults);
ImGui_ImplOpenGL3_Init(); ImGui_ImplOpenGL3_Init();
Settings.DisplayIndicators = true; Settings.DisplayIndicators = true;

View File

@ -48,7 +48,6 @@ static int avi_image_size = 0;
static uint32 avi_skip_frames = 0; static uint32 avi_skip_frames = 0;
static bool pre_avi_soundsync = true; static bool pre_avi_soundsync = true;
static uint32 pre_avi_soundinputrate = 32000; static uint32 pre_avi_soundinputrate = 32000;
void DoAVIOpen(const char* filename);
void DoAVIClose(int reason); void DoAVIClose(int reason);
void S9xWinScanJoypads (); void S9xWinScanJoypads ();