wayland: early return on SetWHImpl if width and height are the same
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
8ad9e19de0
commit
7cb7a2739e
1 changed files with 4 additions and 0 deletions
|
|
@ -2106,6 +2106,10 @@ static void actually_set_wh(MwLL handle) {
|
|||
static void MwLLSetWHImpl(MwLL handle, int w, int h) {
|
||||
WIDGET_CHECK(handle);
|
||||
|
||||
if(handle->wayland.ww == w && handle->wayland.wh == h) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Prevent an integer underflow when the w/h is too low */
|
||||
if((w < 2 || h < 2)) {
|
||||
handle->wayland.ww = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue