Lines Matching refs:displayIndex

137 #define CHECK_DISPLAY_INDEX(displayIndex, retval) \  argument
143 SDL_assert(displayIndex >= 0 && displayIndex < _this->num_displays); \
144 if (displayIndex < 0 || displayIndex >= _this->num_displays) { \
650 int displayIndex; in SDL_GetIndexOfDisplay() local
652 for (displayIndex = 0; displayIndex < _this->num_displays; ++displayIndex) { in SDL_GetIndexOfDisplay()
653 if (display == &_this->displays[displayIndex]) { in SDL_GetIndexOfDisplay()
654 return displayIndex; in SDL_GetIndexOfDisplay()
663 SDL_GetDisplayDriverData(int displayIndex) in SDL_GetDisplayDriverData() argument
665 CHECK_DISPLAY_INDEX(displayIndex, NULL); in SDL_GetDisplayDriverData()
667 return _this->displays[displayIndex].driverdata; in SDL_GetDisplayDriverData()
677 SDL_GetDisplayName(int displayIndex) in SDL_GetDisplayName() argument
679 CHECK_DISPLAY_INDEX(displayIndex, NULL); in SDL_GetDisplayName()
681 return _this->displays[displayIndex].name; in SDL_GetDisplayName()
685 SDL_GetDisplayBounds(int displayIndex, SDL_Rect * rect) in SDL_GetDisplayBounds() argument
687 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetDisplayBounds()
690 SDL_VideoDisplay *display = &_this->displays[displayIndex]; in SDL_GetDisplayBounds()
699 if (displayIndex == 0) { in SDL_GetDisplayBounds()
703 SDL_GetDisplayBounds(displayIndex-1, rect); in SDL_GetDisplayBounds()
720 SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rect * rect) in SDL_GetDisplayUsableBounds() argument
722 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetDisplayUsableBounds()
725 SDL_VideoDisplay *display = &_this->displays[displayIndex]; in SDL_GetDisplayUsableBounds()
727 if ((displayIndex == 0) && ParseDisplayUsableBoundsHint(rect)) { in SDL_GetDisplayUsableBounds()
738 return SDL_GetDisplayBounds(displayIndex, rect); in SDL_GetDisplayUsableBounds()
744 SDL_GetDisplayDPI(int displayIndex, float * ddpi, float * hdpi, float * vdpi) in SDL_GetDisplayDPI() argument
748 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetDisplayDPI()
750 display = &_this->displays[displayIndex]; in SDL_GetDisplayDPI()
764 SDL_GetDisplayOrientation(int displayIndex) in SDL_GetDisplayOrientation() argument
768 CHECK_DISPLAY_INDEX(displayIndex, SDL_ORIENTATION_UNKNOWN); in SDL_GetDisplayOrientation()
770 display = &_this->displays[displayIndex]; in SDL_GetDisplayOrientation()
822 SDL_GetNumDisplayModes(int displayIndex) in SDL_GetNumDisplayModes() argument
824 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetNumDisplayModes()
826 return SDL_GetNumDisplayModesForDisplay(&_this->displays[displayIndex]); in SDL_GetNumDisplayModes()
830 SDL_GetDisplayMode(int displayIndex, int index, SDL_DisplayMode * mode) in SDL_GetDisplayMode() argument
834 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetDisplayMode()
836 display = &_this->displays[displayIndex]; in SDL_GetDisplayMode()
848 SDL_GetDesktopDisplayMode(int displayIndex, SDL_DisplayMode * mode) in SDL_GetDesktopDisplayMode() argument
852 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetDesktopDisplayMode()
854 display = &_this->displays[displayIndex]; in SDL_GetDesktopDisplayMode()
862 SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode * mode) in SDL_GetCurrentDisplayMode() argument
866 CHECK_DISPLAY_INDEX(displayIndex, -1); in SDL_GetCurrentDisplayMode()
868 display = &_this->displays[displayIndex]; in SDL_GetCurrentDisplayMode()
983 SDL_GetClosestDisplayMode(int displayIndex, in SDL_GetClosestDisplayMode() argument
989 CHECK_DISPLAY_INDEX(displayIndex, NULL); in SDL_GetClosestDisplayMode()
991 display = &_this->displays[displayIndex]; in SDL_GetClosestDisplayMode()
1045 SDL_GetDisplay(int displayIndex) in SDL_GetDisplay() argument
1047 CHECK_DISPLAY_INDEX(displayIndex, NULL); in SDL_GetDisplay()
1049 return &_this->displays[displayIndex]; in SDL_GetDisplay()
1055 int displayIndex; in SDL_GetWindowDisplayIndex() local
1067 displayIndex = (window->x & 0xFFFF); in SDL_GetWindowDisplayIndex()
1068 if (displayIndex >= _this->num_displays) { in SDL_GetWindowDisplayIndex()
1069 displayIndex = 0; in SDL_GetWindowDisplayIndex()
1071 return displayIndex; in SDL_GetWindowDisplayIndex()
1075 displayIndex = (window->y & 0xFFFF); in SDL_GetWindowDisplayIndex()
1076 if (displayIndex >= _this->num_displays) { in SDL_GetWindowDisplayIndex()
1077 displayIndex = 0; in SDL_GetWindowDisplayIndex()
1079 return displayIndex; in SDL_GetWindowDisplayIndex()
1115 int displayIndex = SDL_GetWindowDisplayIndex(window); in SDL_GetDisplayForWindow() local
1116 if (displayIndex >= 0) { in SDL_GetDisplayForWindow()
1117 return &_this->displays[displayIndex]; in SDL_GetDisplayForWindow()
1534 int displayIndex; in SDL_CreateWindow() local
1537 displayIndex = SDL_GetIndexOfDisplay(display); in SDL_CreateWindow()
1538 SDL_GetDisplayBounds(displayIndex, &bounds); in SDL_CreateWindow()
1553 int displayIndex; in SDL_CreateWindow() local
1556 displayIndex = SDL_GetIndexOfDisplay(display); in SDL_CreateWindow()
1557 SDL_GetDisplayBounds(displayIndex, &bounds); in SDL_CreateWindow()
1928 int displayIndex = (x & 0xFFFF); in SDL_SetWindowPosition() local
1930 if (displayIndex >= _this->num_displays) { in SDL_SetWindowPosition()
1931 displayIndex = 0; in SDL_SetWindowPosition()
1936 SDL_GetDisplayBounds(displayIndex, &bounds); in SDL_SetWindowPosition()
1973 int displayIndex; in SDL_GetWindowPosition() local
1984 displayIndex = SDL_GetWindowDisplayIndex(window); in SDL_GetWindowPosition()
1985 if (displayIndex >= 0) { in SDL_GetWindowPosition()
1990 SDL_GetDisplayBounds(displayIndex, &bounds); in SDL_GetWindowPosition()