Skip to content

Commit

Permalink
Apply Guichan's changes from 40b4a526479f407546bb3a9d33eabc8ff75a40d3…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarod42 committed Aug 27, 2024
1 parent 419d2ca commit 14ca2e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from 40b4a526479f407546bb3a9d33eabc8ff75a40d3
* Continue rebasing from 98d94808f26240a1e7af77513a146cc9c2a870fd
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
Expand Down
7 changes: 6 additions & 1 deletion src/graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,13 @@ namespace gcn
bool Graphics::pushClipArea(Rectangle area)
{
// Ignore area with a negative width or height
// by simple pushing an empty clip area to the stack.
if (area.width < 0 || area.height < 0)
return false;
{
ClipRectangle carea;
mClipStack.push(carea);
return true;
}
if (mClipStack.empty())
{
ClipRectangle carea;
Expand Down

0 comments on commit 14ca2e6

Please sign in to comment.