Search
lxdream.org :: lxdream/src/drivers/video_osx.m :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_osx.m
changeset 1236:d93175c36387
prev1086:29776415438d
next1251:b8ab59d39756
author nkeynes
date Fri Feb 24 21:17:47 2012 +1000 (7 years ago)
permissions -rw-r--r--
last change Factor video_width/video_height out into video_gl.c
Convert immediate-mode bits in video_gl.c into a structure for glDrawArray
Move setOrtho into defineOrthoMatrix in glutil.c
Rearrange various GL settings to keep a consistent state
file annotate diff log raw
1.1 --- a/src/drivers/video_osx.m Fri Dec 04 08:44:02 2009 +1000
1.2 +++ b/src/drivers/video_osx.m Fri Feb 24 21:17:47 2012 +1000
1.3 @@ -53,8 +53,6 @@
1.4
1.5
1.6 static NSView *video_view = NULL;
1.7 -int video_width = 640;
1.8 -int video_height = 480;
1.9
1.10 #define MAX_MASK_KEYCODE 128
1.11
1.12 @@ -122,8 +120,7 @@
1.13 {
1.14 NSSize size = [self frame].size;
1.15 if( video_width != size.width || video_height != size.height ) {
1.16 - video_width = size.width;
1.17 - video_height = size.height;
1.18 + gl_set_video_size(size.width, size.height);
1.19 video_nsgl_update();
1.20 }
1.21 pvr2_draw_frame();
.