Lines Matching refs:mode

56 print_mode(const screen_mode& mode, bool shortOutput)
60 printf(format, mode.width, mode.height, mode.BitsPerPixel(), mode.refresh);
65 print_mode(const display_mode& displayMode, const screen_mode& mode)
81 printf(" %" B_PRId32 "\n", mode.BitsPerPixel());
89 "Usage: %s [options] <mode>\n"
90 "Sets the specified screen mode. When no screen mode has been chosen,\n"
91 "the current one is printed. <mode> takes the form: <width> <height>\n"
93 " --fall-back\tchanges to the standard fallback mode, and "
96 " -s --short\t\twhen no mode is given the current screen mode is\n"
99 " -q --dont-confirm\tdo not confirm the mode after setting it.\n"
128 display_mode mode;
172 // arguments to specify the mode are following
193 // parse mode line
197 mode.timing.pixel_clock = strtol(argv[optind], NULL, 0) * 1000;
198 mode.timing.h_display = strtol(argv[optind + 1], NULL, 0);
199 mode.timing.h_sync_start = strtol(argv[optind + 2], NULL, 0);
200 mode.timing.h_sync_end = strtol(argv[optind + 3], NULL, 0);
201 mode.timing.h_total = strtol(argv[optind + 4], NULL, 0);
202 mode.timing.v_display = strtol(argv[optind + 5], NULL, 0);
203 mode.timing.v_sync_start = strtol(argv[optind + 6], NULL, 0);
204 mode.timing.v_sync_end = strtol(argv[optind + 7], NULL, 0);
205 mode.timing.v_total = strtol(argv[optind + 8], NULL, 0);
206 mode.timing.flags = 0;
207 mode.space = B_RGB32;
212 mode.timing.flags |= B_POSITIVE_HSYNC;
214 mode.timing.flags |= B_POSITIVE_VSYNC;
216 mode.timing.flags |= B_TIMING_INTERLACED;
222 mode.space
232 mode.virtual_width = mode.timing.h_display;
233 mode.virtual_height = mode.timing.v_display;
234 mode.h_display_start = 0;
235 mode.v_display_start = 0;
284 // Just print the current mode
286 display_mode mode;
287 screenMode.Get(mode);
288 print_mode(mode, currentMode);
314 mode.flags = currentDisplayMode.flags;
332 status = screenMode.Set(mode);
338 printf("Is this mode okay (Y/n - will revert after 10 seconds)? ");
359 "%s: Could not set screen mode "
372 "reset the screen mode to a safe fallback.", "Keep", "Revert");