Lines Matching defs:mode
54 // the app_server is smart enough to translate this to VGA mode
71 /*! Checks if the specified \a mode can be set using VESA. */
73 is_mode_supported(display_mode* mode)
80 // search mode in VESA mode list
82 if (modes[i].width == mode->virtual_width
83 && modes[i].height == mode->virtual_height
85 == mode->space)
88 if (get_color_space_for_depth(modes[i].bits_per_pixel) == mode->space)
94 // We know how to patch the BIOS, so we can set any mode we want
100 if (mode->virtual_width == kNVidiaAllowedResolutions[i].width
101 && mode->virtual_height == kNVidiaAllowedResolutions[i].height)
110 /*! Creates the initial mode list of the primary accelerant.
179 // Search for the specified mode in the list. If it's in there, we don't need a custom mode and
219 display_mode mode = *_mode;
220 if (vesa_propose_display_mode(&mode, &mode, &mode) != B_OK)
225 // search mode in VESA mode list
227 if (modes[i].width == mode.virtual_width
228 && modes[i].height == mode.virtual_height
230 == mode.space) {
240 // If the mode is not found in the list of standard mode, live patch the BIOS to get it anyway
242 &mode, sizeof(display_mode));
290 vesa_get_pixel_clock_limits(display_mode* mode, uint32* _low, uint32* _high)
295 uint32 totalPixel = (uint32)mode->timing.h_total
296 * (uint32)mode->timing.v_total;