Lines Matching refs:mode

96 	combine_mode	mode;
107 tv_standard_to_string(uint32 mode)
109 switch (mode) {
123 name << "??? (" << mode << ")";
132 resolution_to_string(screen_mode& mode, BString &string)
136 mode.width, mode.height);
158 return B_TRANSLATE("Unknown mode");
322 screen_mode mode = fScreenMode.ModeAt(i);
324 if (mode.width == previousWidth && mode.height == previousHeight)
327 previousWidth = mode.width;
328 previousHeight = mode.height;
329 if (maxWidth < mode.width)
330 maxWidth = mode.width;
331 if (maxHeight < mode.height)
332 maxHeight = mode.height;
356 screen_mode mode = fScreenMode.ModeAt(i);
358 if (mode.width == previousWidth && mode.height == previousHeight)
361 previousWidth = mode.width;
362 previousHeight = mode.height;
365 message->AddInt32("width", mode.width);
366 message->AddInt32("height", mode.height);
371 mode.width, mode.height);
485 message->AddInt32("mode", kCombineModes[i].mode);
543 uint32 mode;
544 if (GetNthSupportedTVStandard(&screen, i, &mode) != B_OK)
547 BString name = tv_standard_to_string(mode);
550 message->AddInt32("tv_standard", mode);
634 // Write mode of workspace 0 (the boot workspace) to the vesa settings file
639 BString warning = B_TRANSLATE("Could not write VESA mode settings"
656 /*! Update resolution list according to combine mode
666 screen_mode mode = fScreenMode.ModeAt(i);
667 if (mode.combine != fSelected.combine)
673 mode.width, mode.height);
682 /*! Update color and refresh options according to current mode
683 (a color space is made active if there is any mode with
700 screen_mode mode = fScreenMode.ModeAt(j);
702 if (fSelected.width == mode.width
703 && fSelected.height == mode.height
704 && kColorSpaces[i].space == mode.space
705 && fSelected.combine == mode.combine) {
773 /*! Enable/disable refresh options according to current mode. */
878 // this is bad luck - if mode has been set via screen references,
885 // really set current mode - it's just not in the list
898 // mark active combine mode
900 if (kCombineModes[i].mode == fSelected.combine) {
933 /*! Reflect active mode in chosen settings */
944 // Usually, this function gets called after a mode
946 // is free to fiddle with mode passed, we better ask
947 // what kind of mode we actually got
996 ScreenWindow::ScreenChanged(BRect frame, color_space mode)
1139 // new combine mode has bee chosen
1140 int32 mode;
1141 if (message->FindInt32("mode", &mode) == B_OK)
1142 fSelected.combine = (combine_mode)mode;
1246 ScreenWindow::_WriteVesaModeFile(const screen_mode& mode) const
1265 snprintf(buffer, sizeof(buffer), "mode %" B_PRId32 " %" B_PRId32 " %"
1266 B_PRId32 "\n", mode.width, mode.height, mode.BitsPerPixel());
1431 // use the mode that has eventually been set and
1433 // the mode selected by user due to hardware limitation
1453 // TODO: only show alert when this is an unknown mode
1459 B_TRANSLATE("The screen mode could not be set:\n\t%s\n"),