comparison test/common.c @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents 19691cebb866
children 3e69e077cb95
comparison
equal deleted inserted replaced
3684:cc564f08884f 3685:64ce267332c6
759 break; 759 break;
760 } 760 }
761 fullscreen_mode.refresh_rate = state->refresh_rate; 761 fullscreen_mode.refresh_rate = state->refresh_rate;
762 762
763 state->windows = 763 state->windows =
764 (SDL_WindowID *) SDL_malloc(state->num_windows * 764 (SDL_Window **) SDL_malloc(state->num_windows *
765 sizeof(*state->windows)); 765 sizeof(*state->windows));
766 if (!state->windows) { 766 if (!state->windows) {
767 fprintf(stderr, "Out of memory!\n"); 767 fprintf(stderr, "Out of memory!\n");
768 return SDL_FALSE; 768 return SDL_FALSE;
769 } 769 }