Changeset 617 for trunk/deushax


Ignore:
Timestamp:
Feb 9, 2011, 12:23:54 AM (10 years ago)
Author:
sam
Message:

Store the requested FPS in the Ticker class.

Location:
trunk/deushax
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/deushax/deushax.cpp

    r616 r617  
    5050    //SDL_WM_GrabInput(SDL_GRAB_ON);
    5151
     52    Ticker::Setup(FPS);
     53
    5254    /* Initialise OpenGL */
    5355    Video::Setup(video->w, video->h);
     
    7678        Ticker::TickDraw();
    7779        SDL_GL_SwapBuffers();
    78         Ticker::ClampFps(1000.0f / FPS);
     80        Ticker::ClampFps();
    7981    }
    8082
  • trunk/deushax/gtk/glmapview.cpp

    r616 r617  
    122122    gtk_widget_grab_focus(glarea);
    123123    if (gtk_gl_area_make_current(GTK_GL_AREA(glarea)))
     124    {
     125        Ticker::Setup(FPS);
    124126        Video::Setup(glarea->allocation.width, glarea->allocation.height);
     127    }
    125128
    126129    UpdateAdjustments();
     
    156159
    157160        // FIXME: do some GTK stuff in here
    158         Ticker::ClampFps(1000.0f / FPS);
     161        Ticker::ClampFps();
    159162    }
    160163
Note: See TracChangeset for help on using the changeset viewer.