Windows: update buffer_stride

This commit is contained in:
Carlos Aragones 2020-09-15 11:46:17 +02:00
parent f09780d761
commit 2cf75ce9ac

View File

@ -406,6 +406,7 @@ mfb_update_ex(struct mfb_window *window, void *buffer, unsigned width, unsigned
window_data->draw_buffer = buffer; window_data->draw_buffer = buffer;
window_data->buffer_width = width; window_data->buffer_width = width;
window_data->buffer_stride = width * 4;
window_data->buffer_height = height; window_data->buffer_height = height;
SWindowData_Win *window_data_win = (SWindowData_Win *) window_data->specific; SWindowData_Win *window_data_win = (SWindowData_Win *) window_data->specific;