From 89f5e500393145b07a7d186ce974b0663c38ddf8 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 29 Aug 2020 20:53:06 +0200 Subject: [PATCH] GTK: Use accessor to retrieve GtkAdjustment value --- desmume/src/frontend/posix/gtk/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/frontend/posix/gtk/main.cpp b/desmume/src/frontend/posix/gtk/main.cpp index 1e2473172..1ffd61399 100644 --- a/desmume/src/frontend/posix/gtk/main.cpp +++ b/desmume/src/frontend/posix/gtk/main.cpp @@ -2205,7 +2205,7 @@ static void EmulationSettingsDialog(){ } static void JITMaxBlockSizeChanged(GtkAdjustment* adj,void * nullPtr){ - config.jit_max_block_size=(int)adj->value; + config.jit_max_block_size=(int)gtk_adjustment_get_value(adj); } static void ToggleJIT(){