Fix a couple more places where right/bottom edges were considered inclusive
Fixes #9132 (I hope as I cant reproduce it)
This commit is contained in:
parent
77f282785c
commit
8e2b489eed
1 changed files with 3 additions and 3 deletions
|
|
@ -609,7 +609,7 @@ os_window_regions(OSWindow *os_window, Region *central, Region *tab_bar) {
|
|||
central->top = 0;
|
||||
long bottom = os_window->viewport_height - tab_bar_height;
|
||||
central->bottom = MAX(0, bottom);
|
||||
tab_bar->top = central->bottom + 1 + margin_inner;
|
||||
tab_bar->top = central->bottom + margin_inner;
|
||||
break;
|
||||
}
|
||||
tab_bar->left = central->left; tab_bar->right = central->right;
|
||||
|
|
@ -832,8 +832,8 @@ wrap_region(Region *r) {
|
|||
PyStructSequence_SET_ITEM(ans, 1, PyLong_FromUnsignedLong(r->top));
|
||||
PyStructSequence_SET_ITEM(ans, 2, PyLong_FromUnsignedLong(r->right));
|
||||
PyStructSequence_SET_ITEM(ans, 3, PyLong_FromUnsignedLong(r->bottom));
|
||||
PyStructSequence_SET_ITEM(ans, 4, PyLong_FromUnsignedLong(r->right - r->left + 1));
|
||||
PyStructSequence_SET_ITEM(ans, 5, PyLong_FromUnsignedLong(r->bottom - r->top + 1));
|
||||
PyStructSequence_SET_ITEM(ans, 4, PyLong_FromUnsignedLong(r->right - r->left));
|
||||
PyStructSequence_SET_ITEM(ans, 5, PyLong_FromUnsignedLong(r->bottom - r->top));
|
||||
}
|
||||
return ans;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue