Lines Matching refs:mode

15 /* mode flags will be setup as status info by PROPOSEMODE! */
52 /* 4:3 panel mode; 1.47M pixels */
74 /* 16:10 panel mode; 400k pixels */
76 /* 16:10 panel mode; 655.36k pixels */
78 /* 16:10 panel-TV mode; 983.04k pixels */
80 /* 16:10 panel mode; 1.024M pixels */
82 /* 16:10 panel mode; 1.296M pixels */
84 /* 16:10 panel mode; 1.764M pixels */
86 /* 16:10 panel mode; 2.304M pixels */
89 /* 16:9 panel mode; 1280x720 (HDTV 1280x720p) */
91 /* 16:9 panel mode; 1366x768 (HDTV '1280x720p')
94 /* 16:9 panel mode; 1920x1080 (HDTV 1920x1080p) */
99 // transform official mode to internal, multi-screen mode enhanced mode
100 static void Haiku_DetectTranslateMultiMode(display_mode *mode)
102 mode->flags &= ~DUALHEAD_BITS;
104 if( mode->virtual_width == 2 * mode->timing.h_display ) {
105 LOG(4, ("Haiku: horizontal combine mode\n"));
107 mode->flags |= DUALHEAD_SWITCH;
109 mode->flags |= DUALHEAD_ON;
110 } else if( mode->virtual_height == 2 * mode->timing.v_display ) {
111 LOG(4, ("Haiku: vertical combine mode not supported\n"));
118 mode->flags |= DUALHEAD_CLONE;
124 static status_t Haiku_CheckMultiMonTunnel(display_mode *mode, const display_mode *low, const display_mode *high, bool *isTunneled )
126 if( (mode->timing.flags & RADEON_MODE_MULTIMON_REQUEST) != 0 &&
127 (mode->timing.flags & RADEON_MODE_MULTIMON_REPLY) == 0 )
129 mode->timing.flags &= ~RADEON_MODE_MULTIMON_REQUEST;
130 mode->timing.flags |= RADEON_MODE_MULTIMON_REPLY;
140 if( mode->space != 0 || low->space != 0 || high->space != 0
143 || mode->timing.pixel_clock != 0
160 the mode in the Radeon driver. In the Matrox and nVidia drivers they are though. So we need SetMode
163 If the mode as proposed by the driver would be saved by the ScreenPrefs panel, we would 'remember' it over
166 switch( mode->h_display_start ) {
168 switch( mode->v_display_start ) {
171 mode->timing.flags = 1;
173 mode->timing.flags = 0;
174 LOG(4, ("Haiku: tunnel access target=swap, command=get, value=%u\n", mode->timing.flags));
177 si->Haiku_switch_head = mode->timing.flags != 0;
178 LOG(4, ("Haiku: tunnel access target=swap, command=set, value=%u\n", mode->timing.flags));
179 /* Haiku's screenprefs panel expects us to directly set the mode.. (but it should do that itself) */
187 (mode->v_display_start == 1) ? "set" : "get", mode->timing.flags));
194 (mode->v_display_start == 1) ? "set" : "get", mode->timing.flags));
201 mode->h_display_start, mode->v_display_start, mode->timing.flags));
208 Check mode is between low and high limits.
211 B_BAD_VALUE - mode can be made, but outside limits
225 * The target mode should be modified to correspond to the mode as it can be made. */
255 // check how many heads are needed by target mode
273 /* disable aspect checks for a requested TVout mode when mode is TVout capable */
276 /* check if all connected output devices can display the requested mode's aspect.
279 /* calculate display mode aspect */
285 /* if forcing widescreen type was requested don't block mode */
324 allowing 2 pixels more for horizontal display for the 1366 mode, since multiples of 8
400 /* Now find the nearest valid pixelclock we actually can setup for the target mode,
404 /* update the target mode */
435 LOG(4,("PROPOSEMODE: not enough memory for current mode, aborted.\n"));
456 * mode (fixed), and all modes support DPMS (fixed);
457 * We support scrolling and panning in every mode, so we 'send a signal' to
534 /* set HARDWARE_CURSOR mode if suitable */
552 LOG(4, ("PROPOSEMODE: mode can be made, but outside given limits.\n"));
604 /* ask for a compatible mode */
611 /* count it, so move on to next mode */
629 /* figure out how big the list could be (4 colorspaces, 3 virtual types per mode), and adjust up to nearest multiple of B_PAGE_SIZE */
633 si->mode_area = my_mode_list_area = create_area("NV accelerant mode info",
644 // standard mode
653 // double width mode for Haiku ScreenPrefs panel
654 /* note please: These modes should not be added. Instead the mode.flags should be used during setting screen as these will
655 automatically generate the needed other properties of the mode. Besides, virtual size is meant to be used for
664 /* advance to next mode */