Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 196013 | Differences between
and this patch

Collapse All | Expand All

(-)tong.cpp.ori (+9 lines)
Lines 54-59 Link Here
54
#define MENUMOUSE_THRESHOLD 40
54
#define MENUMOUSE_THRESHOLD 40
55
#define DEMO_TIME           8000
55
#define DEMO_TIME           8000
56
56
57
#define MIN_TIME            45
58
57
bool drop_piece(Tetrad*, Tetrad*, Bucket*, Uint32&, bool&, bool&, Option*,
59
bool drop_piece(Tetrad*, Tetrad*, Bucket*, Uint32&, bool&, bool&, Option*,
58
		int&);
60
		int&);
59
61
Lines 1979-1984 Link Here
1979
    SDL_Flip(screen);
1981
    SDL_Flip(screen);
1980
    lastlastupdate=lastupdate;
1982
    lastlastupdate=lastupdate;
1981
    lastupdate=SDL_GetTicks();
1983
    lastupdate=SDL_GetTicks();
1984
    
1985
    // limit to 1000/MIN_TIME fps
1986
    if (lastupdate-lastlastupdate < MIN_TIME) {
1987
      SDL_Delay(MIN_TIME - (lastupdate - lastlastupdate));
1988
    }
1989
    lastupdate = SDL_GetTicks();
1990
    
1982
  }  //main game loop
1991
  }  //main game loop
1983
1992
1984
  if(Mix_PlayingMusic()) {
1993
  if(Mix_PlayingMusic()) {

Return to bug 196013