[Commits] SDL: Fixed Quartz UpdateRects failing to draw after a second SDL...
libsdl.org revision control
commits-owner at libsdl.org
Thu Sep 15 18:01:30 PDT 2011
details: http://hg.libsdl.org/SDL/rev/6e618c16a861
changeset: 5913:6e618c16a861
user: Ryan C. Gordon <icculus at icculus.org>
date: Thu Sep 15 20:59:57 2011 -0400
description:
Fixed Quartz UpdateRects failing to draw after a second SDL_SetVideoMode().
diffstat:
src/video/quartz/SDL_QuartzVideo.m | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r fc557e459527 -r 6e618c16a861 src/video/quartz/SDL_QuartzVideo.m
--- a/src/video/quartz/SDL_QuartzVideo.m Wed Sep 14 13:35:10 2011 -0400
+++ b/src/video/quartz/SDL_QuartzVideo.m Thu Sep 15 20:59:57 2011 -0400
@@ -1097,6 +1097,12 @@
return NULL;
}
+ if (qz_window != nil) {
+ NSGraphicsContext *ctx;
+ ctx = [NSGraphicsContext graphicsContextWithWindow:qz_window];
+ [NSGraphicsContext setCurrentContext:ctx];
+ }
+
/* Setup the new pixel format */
{
int amask = 0,
More information about the commits
mailing list