From 2cf75ce9ac966baefdf372b101402bb2083dd494 Mon Sep 17 00:00:00 2001 From: Carlos Aragones <> Date: Tue, 15 Sep 2020 11:46:17 +0200 Subject: [PATCH] Windows: update buffer_stride --- src/windows/WinMiniFB.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/windows/WinMiniFB.c b/src/windows/WinMiniFB.c index ce733d6..49562c8 100644 --- a/src/windows/WinMiniFB.c +++ b/src/windows/WinMiniFB.c @@ -406,6 +406,7 @@ mfb_update_ex(struct mfb_window *window, void *buffer, unsigned width, unsigned window_data->draw_buffer = buffer; window_data->buffer_width = width; + window_data->buffer_stride = width * 4; window_data->buffer_height = height; SWindowData_Win *window_data_win = (SWindowData_Win *) window_data->specific;