mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:00:38 +00:00
Some improvements and bux fix related to OpenGL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28032 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2395ea184f
commit
b81c668496
7 changed files with 98 additions and 15 deletions
|
@ -2050,6 +2050,16 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
|||
GSWSetViewIsFlipped(ctxt, _rFlags.flipped_view);
|
||||
}
|
||||
|
||||
- (void) _setIgnoresBacking: (BOOL) flag
|
||||
{
|
||||
_rFlags.ignores_backing = flag;
|
||||
}
|
||||
|
||||
- (BOOL) _ignoresBacking
|
||||
{
|
||||
return _rFlags.ignores_backing;
|
||||
}
|
||||
|
||||
- (void) unlockFocusNeedsFlush: (BOOL)flush
|
||||
{
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
|
@ -2078,7 +2088,7 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
|||
NSRect rect;
|
||||
struct NSWindow_struct *window_t;
|
||||
window_t = (struct NSWindow_struct *)_window;
|
||||
if (flush)
|
||||
if (flush && !_rFlags.ignores_backing)
|
||||
{
|
||||
rect = [[window_t->_rectsBeingDrawn lastObject] rectValue];
|
||||
window_t->_rectNeedingFlush =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue