~vcs-imports/libsdl/trunk

« back to all changes in this revision

Viewing changes to src/video/qnxgf/SDL_qnxgf.c

  • Committer: slouken
  • Date: 2010-01-21 06:21:52 UTC
  • Revision ID: svn-v4:c70aab31-4412-0410-b14c-859654838e24:trunk/SDL:5525
Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.

Show diffs side-by-side

added added

removed removed

Lines of Context:
978
978
qnxgf_createwindow(_THIS, SDL_Window * window)
979
979
{
980
980
    SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata;
981
 
    SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
 
981
    SDL_VideoDisplay *display = window->display;
982
982
    SDL_DisplayData *didata = (SDL_DisplayData *) display->driverdata;
983
983
    SDL_WindowData *wdata;
984
984
    int32_t status;
1081
1081
    hiddi_enable_mouse();
1082
1082
 
1083
1083
    /* By default last created window got a input focus */
1084
 
    SDL_SetKeyboardFocus(0, window->id);
1085
 
    SDL_SetMouseFocus(0, window->id);
 
1084
    SDL_SetKeyboardFocus(0, window);
 
1085
    SDL_SetMouseFocus(0, window);
1086
1086
 
1087
1087
    /* Window has been successfully created */
1088
1088
    return 0;
1155
1155
{
1156
1156
    SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata;
1157
1157
    SDL_DisplayData *didata =
1158
 
        (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata;
 
1158
        (SDL_DisplayData *) window->display->driverdata;
1159
1159
    SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
1160
1160
 
1161
1161
    if (wdata != NULL) {
1309
1309
    SDL_VideoData *gfdata = (SDL_VideoData *) _this->driverdata;
1310
1310
    SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
1311
1311
    SDL_DisplayData *didata =
1312
 
        (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata;
 
1312
        (SDL_DisplayData *) window->display->driverdata;
1313
1313
    EGLBoolean status;
1314
1314
    int32_t gfstatus;
1315
1315
    EGLint configs;