296 |
|
#endif |
297 |
|
} |
298 |
|
|
299 |
< |
// This is called when any of the screen/openGL/window, |
299 |
> |
// This is called when the screen/window, |
300 |
|
// width, height or depth is clicked. |
301 |
|
// |
302 |
|
// Note that sender may not actually be an NSMatrix. |
311 |
|
short newtype; |
312 |
|
char str[20]; |
313 |
|
|
314 |
< |
if ( cell == openGL ) |
315 |
< |
newtype = DISPLAY_OPENGL; |
316 |
< |
else if ( cell == screen ) |
314 |
> |
if ( cell == screen ) |
315 |
|
newtype = DISPLAY_SCREEN; |
316 |
|
else if ( cell == window ) |
317 |
|
newtype = DISPLAY_WINDOW; |
371 |
|
else |
372 |
|
sprintf(str, "win/%hd/%hd", newx, newy); |
373 |
|
break; |
376 |
– |
case DISPLAY_OPENGL: |
377 |
– |
if ( newbpp ) |
378 |
– |
sprintf(str, "opengl/%hd/%hd/%hd", newx, newy, newbpp); |
379 |
– |
else |
380 |
– |
sprintf(str, "opengl/%hd/%hd", newx, newy); |
381 |
– |
break; |
374 |
|
case DISPLAY_SCREEN: |
375 |
|
if ( newbpp ) |
376 |
|
sprintf(str, "full/%hd/%hd/%hd", newx, newy, newbpp); |
677 |
|
switch ( display_type ) |
678 |
|
{ |
679 |
|
case DISPLAY_WINDOW: [window setState: YES]; break; |
688 |
– |
case DISPLAY_OPENGL: [openGL setState: YES]; break; |
680 |
|
case DISPLAY_SCREEN: [screen setState: YES]; break; |
681 |
|
} |
682 |
|
|