Lines Matching defs:mode
89 display_mode* mode = _FindMatchingMode();
90 return mode != NULL;
97 display_mode* mode = _FindMatchingMode();
98 if (!mode)
103 // First enter: remember this workspace original mode...
108 // Don't make it new default mode for this workspace...
109 status_t status = screen.SetMode(fGameModeWorkspace, mode, false);
113 // Retrieve the new active display mode, which could be
140 // force the game mode window to fullscreen
170 // Restore original display mode
172 // Make restored mode the default one,
173 // as it was before entering game mode...
228 // not exactly the same, but maybe the best similar mode so far?
248 GlutGameMode::_GetModePixelDepth(const display_mode* mode)
250 switch (mode->space) {
262 GlutGameMode::_GetModeRefreshRate(const display_mode* mode)
266 return rint(10 * float(mode->timing.pixel_clock * 1000)
267 / float(mode->timing.h_total * mode->timing.v_total)) / 10.0;
290 // #pragma mark GLUT game mode API