mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Enabled doublebuffering. Fixed some debug code, disabled some other
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@37111 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
35ec17d74d
commit
8da244ce06
2 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-09-18 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/opal/OpalSurface.m:
|
||||
Enabled doublebuffering. Fixed some debug code, disabled some other
|
||||
debug code.
|
||||
|
||||
2013-09-17 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/opal/OpalFontInfo.m: Use new OPFontGetGlyphWithCharacter to
|
||||
|
@ -5,6 +11,9 @@
|
|||
|
||||
2013-09-17 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/opal/OpalFontInfo.m:
|
||||
Removed some dead code.
|
||||
|
||||
* Source/opal/OpalGState.m:
|
||||
Fixed erroneous offset of glyphs by taking -defaultLineHeightForFont,
|
||||
multiplying by 0.66, and adding that to pt.y. No idea why 0.66
|
||||
|
|
|
@ -135,7 +135,7 @@ static CGContextRef createCGBitmapContext (int pixelsWide,
|
|||
_gsWindowDevice->gdriverProtocol |= GDriverHandlesExpose | GDriverHandlesBacking;
|
||||
_gsWindowDevice->gdriver = self;
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
_backingCGContext = createCGBitmapContext(
|
||||
_gsWindowDevice->buffer_width,
|
||||
_gsWindowDevice->buffer_height);
|
||||
|
@ -182,15 +182,16 @@ static CGContextRef createCGBitmapContext (int pixelsWide,
|
|||
OPContextSetIdentityCTM(_x11CGContext);
|
||||
|
||||
cgRect.origin.y = [self device]->buffer_height - cgRect.origin.y - cgRect.size.height;
|
||||
NSDebugLLog(@"OpalSurface, "@"Painting from %@ to %@", NSStringFromRect(*(NSRect *)&subimageCGRect), NSStringFromRect(*(NSRect *)&cgRect));
|
||||
NSDebugLLog(@"OpalSurface", @"Painting from %@ to %@", NSStringFromRect(*(NSRect *)&subimageCGRect), NSStringFromRect(*(NSRect *)&cgRect));
|
||||
|
||||
CGContextDrawImage(_x11CGContext, cgRect, subImage);
|
||||
|
||||
CGContextSetRGBFillColor(_x11CGContext, 0, (rand() % 255) / 255., 1, 0.7);
|
||||
CGContextSetRGBStrokeColor(_x11CGContext, 1, 0, 0, 1);
|
||||
CGContextSetLineWidth(_x11CGContext, 2);
|
||||
//CGContextSetRGBFillColor(_x11CGContext, 0, (rand() % 255) / 255., 1, 0.7);
|
||||
//CGContextSetRGBStrokeColor(_x11CGContext, 1, 0, 0, 1);
|
||||
//CGContextSetLineWidth(_x11CGContext, 2);
|
||||
//CGContextFillRect(_x11CGContext, cgRect);
|
||||
// CGContextStrokeRect(_x11CGContext, cgRect);i
|
||||
//CGContextStrokeRect(_x11CGContext, cgRect);
|
||||
//CGContextStrokeRect(_x11CGContext, subimageCGRect);
|
||||
#else
|
||||
CGContextSaveGState(_x11CGContext);
|
||||
OPContextResetClip(_x11CGContext);
|
||||
|
|
Loading…
Reference in a new issue