Skip to content

Commit 4834501

Browse files
committed
Fix bug with zoom button
The callback function signature wasn't correct. This didn't affect modern platforms like Linux and MacOS, which use register calling conventions. But legacy platforms like Windows that use old-style stack based calling would crash, as a float-point argument was used a pointer.
1 parent 819c8df commit 4834501

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/output_panel.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,9 @@ static void handle_zoom_original(GtkScaleButton *b, struct output_panel *op)
879879
gtk_widget_queue_draw(op->paperstrip_drawing_area);
880880
}
881881

882-
static void handle_zoom(GtkScaleButton *b, struct output_panel *op)
882+
static void handle_zoom(GtkScaleButton *b, gdouble value, struct output_panel *op)
883883
{
884+
UNUSED(value);
884885
struct display *ssd = op->snst->d;
885886
if (!ssd) return; // Maybe chart hasn't been displayed even once yet?
886887

0 commit comments

Comments
 (0)