| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2016 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | static void NACL_DeleteDevice(SDL_VideoDevice *device) { |
| | | SDL_VideoData *driverdata = (SDL_VideoData*) device->driverdata; |
| | | driverdata->ppb_core->ReleaseResource((PP_Resource) driverdata->ppb_message_loop); |
| | | SDL_free(device->driverdata); |
| | | /* device->driverdata is not freed because it points to static memory */ |
| | | SDL_free(device); |
| | | } |
| | | |
| | |
| | | device->VideoQuit = NACL_VideoQuit; |
| | | device->PumpEvents = NACL_PumpEvents; |
| | | |
| | | device->CreateWindow = NACL_CreateWindow; |
| | | device->CreateSDLWindow = NACL_CreateWindow; |
| | | device->SetWindowTitle = NACL_SetWindowTitle; |
| | | device->DestroyWindow = NACL_DestroyWindow; |
| | | |