Skip to content

Commit

Permalink
gpulib: don't set_mode for 0
Browse files Browse the repository at this point in the history
can happen with the new borderless setting
  • Loading branch information
notaz committed Oct 29, 2023
1 parent 20bfbac commit eaa38b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/gpulib/vout_pl.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ static void check_mode_change(int force)
gpu.state.w_out_old = w_out;
gpu.state.h_out_old = h_out;

cbs->pl_vout_set_mode(w_out, h_out, w, h,
if (w_out != 0 && h_out != 0)
cbs->pl_vout_set_mode(w_out, h_out, w, h,
(gpu.status & PSX_GPU_STATUS_RGB24) ? 24 : 16);
}
}
Expand Down

0 comments on commit eaa38b6

Please sign in to comment.