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 bb0379b commit 501a8ca
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 @@ -63,7 +63,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 501a8ca

Please sign in to comment.