Mercurial > sdl-ios-xcode
comparison src/video/SDL_video.c @ 3501:467e67d301f3
Removed a little redundancy in the naming
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 01 Dec 2009 06:15:10 +0000 |
parents | 4b594623401b |
children | 98a819296cdc |
comparison
equal
deleted
inserted
replaced
3500:4b594623401b | 3501:467e67d301f3 |
---|---|
718 } | 718 } |
719 return 0; | 719 return 0; |
720 } | 720 } |
721 | 721 |
722 int | 722 int |
723 SDL_SetDisplayPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors) | 723 SDL_SetPaletteForDisplay(SDL_VideoDisplay * display, const SDL_Color * colors, int firstcolor, int ncolors) |
724 { | 724 { |
725 SDL_Palette *palette; | 725 SDL_Palette *palette; |
726 int status = 0; | 726 int status = 0; |
727 | 727 |
728 palette = display->palette; | 728 palette = display->palette; |
745 { | 745 { |
746 if (!_this) { | 746 if (!_this) { |
747 SDL_UninitializedVideo(); | 747 SDL_UninitializedVideo(); |
748 return -1; | 748 return -1; |
749 } | 749 } |
750 return SDL_SetDisplayPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors); | 750 return SDL_SetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors); |
751 } | 751 } |
752 | 752 |
753 int | 753 int |
754 SDL_GetDisplayPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors) | 754 SDL_GetPaletteForDisplay(SDL_VideoDisplay * display, SDL_Color * colors, int firstcolor, int ncolors) |
755 { | 755 { |
756 SDL_Palette *palette; | 756 SDL_Palette *palette; |
757 | 757 |
758 palette = display->palette; | 758 palette = display->palette; |
759 if (!palette || !palette->ncolors) { | 759 if (!palette || !palette->ncolors) { |
776 | 776 |
777 if (!_this) { | 777 if (!_this) { |
778 SDL_UninitializedVideo(); | 778 SDL_UninitializedVideo(); |
779 return -1; | 779 return -1; |
780 } | 780 } |
781 return SDL_GetDisplayPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors); | 781 return SDL_GetPaletteForDisplay(&SDL_CurrentDisplay, colors, firstcolor, ncolors); |
782 } | 782 } |
783 | 783 |
784 SDL_WindowID | 784 SDL_WindowID |
785 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) | 785 SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags) |
786 { | 786 { |