Skip to content

Commit

Permalink
Assorted fixes for NaCl. Hat tip to Sylvain Becker
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Jun 16, 2014
1 parent 9e55ace commit ab238dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README-nacl.txt
Expand Up @@ -90,4 +90,5 @@ For more information on how nacl_io and mount points work, see:
TODO - Known Issues
================================================================================
* Testing of all systems with a real application (something other than SDL's tests)
* Key events don't seem to work properly

4 changes: 2 additions & 2 deletions src/video/nacl/SDL_naclvideo.c
Expand Up @@ -139,6 +139,7 @@ int NACL_VideoInit(_THIS) {
SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
SDL_DisplayMode mode;

SDL_zero(mode);
mode.format = driverdata->format;
mode.w = driverdata->w;
mode.h = driverdata->h;
Expand All @@ -147,8 +148,7 @@ int NACL_VideoInit(_THIS) {
if (SDL_AddBasicVideoDisplay(&mode) < 0) {
return -1;
}

SDL_zero(mode);

SDL_AddDisplayMode(&_this->displays[0], &mode);

PSInterfaceInit();
Expand Down
3 changes: 3 additions & 0 deletions src/video/nacl/SDL_naclwindow.c
Expand Up @@ -51,6 +51,9 @@ NACL_CreateWindow(_THIS, SDL_Window * window)
window->flags |= SDL_WINDOW_INPUT_FOCUS; /* always has input focus */
window->flags |= SDL_WINDOW_OPENGL;

SDL_SetMouseFocus(window);
SDL_SetKeyboardFocus(window);

return 0;
}

Expand Down

0 comments on commit ab238dc

Please sign in to comment.