mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
issue with XClearArea and 0-width areas
This commit is contained in:
parent
37fde51fb1
commit
23ab03ec91
@ -722,11 +722,19 @@ redraw() {
|
||||
|
||||
// Then clear the rectangles around it carefully (rather than just
|
||||
// clearing the whole window first, to avoid flicking).
|
||||
if (yo != 0 && _win_width != 0) {
|
||||
// Top
|
||||
XClearArea(_display, _window, 0, 0, _win_width, yo, False);
|
||||
XClearArea(_display, _window, 0, yo, xo, _composite_height, False);
|
||||
XClearArea(_display, _window, _win_width - xo, yo, xo, _composite_height, False);
|
||||
// Bottom
|
||||
XClearArea(_display, _window, 0, _win_height - yo, _win_width, yo, False);
|
||||
}
|
||||
if (xo != 0 && _composite_height != 0) {
|
||||
// Left
|
||||
XClearArea(_display, _window, 0, yo, xo, _composite_height, False);
|
||||
// Right
|
||||
XClearArea(_display, _window, _win_width - xo, yo, xo, _composite_height, False);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user