Remove redundant "== false" code
Some of this code has been re-organized. f
This commit is contained in:
@ -1096,7 +1096,7 @@ void OS_X11::set_window_size(const Size2 p_size) {
|
||||
int old_h = xwa.height;
|
||||
|
||||
// If window resizable is disabled we need to update the attributes first
|
||||
if (is_window_resizable() == false) {
|
||||
if (!is_window_resizable()) {
|
||||
XSizeHints *xsh;
|
||||
xsh = XAllocSizeHints();
|
||||
xsh->flags = PMinSize | PMaxSize;
|
||||
@ -1688,7 +1688,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) {
|
||||
}
|
||||
} else {
|
||||
//ignore
|
||||
if (last_is_pressed == false) {
|
||||
if (!last_is_pressed) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user