src/video/psp/SDL_pspvideo.c
changeset 9325 4f7a9123393a
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9324:56f9b7e8547c 9325:4f7a9123393a
    64     SDL_VideoDevice *device;
    64     SDL_VideoDevice *device;
    65     SDL_VideoData *phdata;
    65     SDL_VideoData *phdata;
    66     SDL_GLDriverData *gldata;
    66     SDL_GLDriverData *gldata;
    67     int status;
    67     int status;
    68 
    68 
    69     /* Check if pandora could be initialized */
    69     /* Check if PSP could be initialized */
    70     status = PSP_Available();
    70     status = PSP_Available();
    71     if (status == 0) {
    71     if (status == 0) {
    72         /* PSP could not be used */
    72         /* PSP could not be used */
    73         return NULL;
    73         return NULL;
    74     }
    74     }
    78     if (device == NULL) {
    78     if (device == NULL) {
    79         SDL_OutOfMemory();
    79         SDL_OutOfMemory();
    80         return NULL;
    80         return NULL;
    81     }
    81     }
    82 
    82 
    83     /* Initialize internal Pandora specific data */
    83     /* Initialize internal PSP specific data */
    84     phdata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData));
    84     phdata = (SDL_VideoData *) SDL_calloc(1, sizeof(SDL_VideoData));
    85     if (phdata == NULL) {
    85     if (phdata == NULL) {
    86         SDL_OutOfMemory();
    86         SDL_OutOfMemory();
    87         SDL_free(device);
    87         SDL_free(device);
    88         return NULL;
    88         return NULL;