comparison src/video/SDL_video.c @ 3526:e6f2f312780f

Fixed compiler warnings
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Dec 2009 22:13:36 +0000
parents e7eec78e4b92
children 59ff7a2beb57
comparison
equal deleted inserted replaced
3525:455a6c47d2c6 3526:e6f2f312780f
595 int 595 int
596 SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode) 596 SDL_SetDisplayModeForDisplay(SDL_VideoDisplay * display, const SDL_DisplayMode * mode)
597 { 597 {
598 SDL_DisplayMode display_mode; 598 SDL_DisplayMode display_mode;
599 SDL_DisplayMode current_mode; 599 SDL_DisplayMode current_mode;
600 int i, ncolors; 600 int ncolors;
601 601
602 if (mode) { 602 if (mode) {
603 display_mode = *mode; 603 display_mode = *mode;
604 604
605 /* Default to the current mode */ 605 /* Default to the current mode */
685 if (mode) { 685 if (mode) {
686 window->fullscreen_mode = *mode; 686 window->fullscreen_mode = *mode;
687 } else { 687 } else {
688 SDL_zero(window->fullscreen_mode); 688 SDL_zero(window->fullscreen_mode);
689 } 689 }
690 return 0;
690 } 691 }
691 692
692 int 693 int
693 SDL_GetWindowDisplayMode(SDL_WindowID windowID, SDL_DisplayMode * mode) 694 SDL_GetWindowDisplayMode(SDL_WindowID windowID, SDL_DisplayMode * mode)
694 { 695 {
830 } 831 }
831 832
832 int 833 int
833 SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors) 834 SDL_GetDisplayPalette(SDL_Color * colors, int firstcolor, int ncolors)
834 { 835 {
835 SDL_Palette *palette;
836
837 if (!_this) { 836 if (!_this) {
838 SDL_UninitializedVideo(); 837 SDL_UninitializedVideo();
839 return -1; 838 return -1;
840 } 839 }
841 return SDL_GetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors); 840 return SDL_GetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors);