comparison src/video/SDL_video.c @ 2130:3ee59c43d784

Fixes for compiling with Visual C++ 8.0 Express Edition
author Sam Lantinga <slouken@libsdl.org>
date Tue, 19 Jun 2007 05:53:56 +0000
parents 9341a884a4d9
children 926294b2bb4e
comparison
equal deleted inserted replaced
2129:047245361002 2130:3ee59c43d784
937 937
938 void 938 void
939 SDL_SetWindowTitle(SDL_WindowID windowID, const char *title) 939 SDL_SetWindowTitle(SDL_WindowID windowID, const char *title)
940 { 940 {
941 SDL_Window *window = SDL_GetWindowFromID(windowID); 941 SDL_Window *window = SDL_GetWindowFromID(windowID);
942 const char *last_title;
943 942
944 if (!window || title == window->title) { 943 if (!window || title == window->title) {
945 return; 944 return;
946 } 945 }
947 946
1850 1849
1851 int 1850 int
1852 SDL_GetTextureAlphaMod(SDL_TextureID textureID, Uint8 * alpha) 1851 SDL_GetTextureAlphaMod(SDL_TextureID textureID, Uint8 * alpha)
1853 { 1852 {
1854 SDL_Texture *texture = SDL_GetTextureFromID(textureID); 1853 SDL_Texture *texture = SDL_GetTextureFromID(textureID);
1855 SDL_Renderer *renderer;
1856 1854
1857 if (!texture) { 1855 if (!texture) {
1858 return -1; 1856 return -1;
1859 } 1857 }
1860 1858
1884 1882
1885 int 1883 int
1886 SDL_GetTextureBlendMode(SDL_TextureID textureID, int *blendMode) 1884 SDL_GetTextureBlendMode(SDL_TextureID textureID, int *blendMode)
1887 { 1885 {
1888 SDL_Texture *texture = SDL_GetTextureFromID(textureID); 1886 SDL_Texture *texture = SDL_GetTextureFromID(textureID);
1889 SDL_Renderer *renderer;
1890 1887
1891 if (!texture) { 1888 if (!texture) {
1892 return -1; 1889 return -1;
1893 } 1890 }
1894 1891
1918 1915
1919 int 1916 int
1920 SDL_GetTextureScaleMode(SDL_TextureID textureID, int *scaleMode) 1917 SDL_GetTextureScaleMode(SDL_TextureID textureID, int *scaleMode)
1921 { 1918 {
1922 SDL_Texture *texture = SDL_GetTextureFromID(textureID); 1919 SDL_Texture *texture = SDL_GetTextureFromID(textureID);
1923 SDL_Renderer *renderer;
1924 1920
1925 if (!texture) { 1921 if (!texture) {
1926 return -1; 1922 return -1;
1927 } 1923 }
1928 1924