comparison src/video/photon/SDL_ph_modes.c @ 1338:604d73db6802

Removed uses of stdlib.h and string.h
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 09:29:18 +0000
parents 3692456e7b0f
children c71e05b4dc2e
comparison
equal deleted inserted replaced
1337:c687f06c7473 1338:604d73db6802
171 if (PgGetVideoModeList(&mode_list) < 0) 171 if (PgGetVideoModeList(&mode_list) < 0)
172 { 172 {
173 return -1; 173 return -1;
174 } 174 }
175 175
176 qsort(mode_list.modes, mode_list.num_modes, sizeof(unsigned short), compare_modes_by_res); 176 SDL_qsort(mode_list.modes, mode_list.num_modes, sizeof(unsigned short), compare_modes_by_res);
177 177
178 for(i=0;i<mode_list.num_modes;i++) 178 for(i=0;i<mode_list.num_modes;i++)
179 { 179 {
180 if (PgGetVideoModeInfo(mode_list.modes[i], &mode_info) < 0) 180 if (PgGetVideoModeInfo(mode_list.modes[i], &mode_info) < 0)
181 { 181 {