Merge final fixes from internal repositories
This commit is contained in:
committed by
Christian Helmuth
parent
6ce4e47c1c
commit
d1891e8a27
@@ -46,8 +46,8 @@ class Canvas
|
||||
/* check against canvas boundaries */
|
||||
if (_clip_x1 < 0) _clip_x1 = 0;
|
||||
if (_clip_y1 < 0) _clip_y1 = 0;
|
||||
if (_clip_x2 >= _w && w > 0) _clip_x2 = _w - 1;
|
||||
if (_clip_y2 >= _h && w > 0) _clip_y2 = _h - 1;
|
||||
if (w > 0 && _clip_x2 > _w - 1) _clip_x2 = _w - 1;
|
||||
if (h > 0 && _clip_y2 > _h - 1) _clip_y2 = _h - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user