/[paragui]/paragui/test/animation.cpp
ViewVC logotype

Diff of /paragui/test/animation.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.6.3.2.1 by braindead, Fri Nov 21 12:27:56 2003 UTC revision 1.1.6.3.2.2 by braindead, Mon Nov 24 09:17:22 2003 UTC
# Line 63  protected: Line 63  protected:
63  private:  private:
64    
65          // the color we want to draw the lines with          // the color we want to draw the lines with
66          SDL_Color my_color;          PG_Color my_color;
67    
68          int tickstate;          int tickstate;
69  };  };
# Line 120  void PlayField::eventBlit(SDL_Surface* s Line 120  void PlayField::eventBlit(SDL_Surface* s
120                  tickstate = 1;                  tickstate = 1;
121          }          }
122          else if (tickstate == 1) {          else if (tickstate == 1) {
123                  DrawHLine(0, my_height/2, my_width-1, my_color.r, my_color.g, my_color.b);                  DrawHLine(0, my_height/2, my_width-1, my_color);
124                  tickstate = 0;                  tickstate = 0;
125          }          }
126  }  }
# Line 150  protected: Line 150  protected:
150  private:  private:
151    
152          // the color we want to draw the lines with          // the color we want to draw the lines with
153          SDL_Color my_color;          PG_Color my_color;
154    
155          int tickstate;          int tickstate;
156  };  };
# Line 194  void PlayField2::eventBlit(SDL_Surface* Line 194  void PlayField2::eventBlit(SDL_Surface*
194                  );                  );
195          }          }
196    
197          SDL_Color temp_color;          PG_Color temp_color;
198          PG_Rect temp_rect;          PG_Rect temp_rect;
199          Uint32 temp_int;          Uint32 temp_int;
200    
# Line 207  void PlayField2::eventBlit(SDL_Surface* Line 207  void PlayField2::eventBlit(SDL_Surface*
207          temp_color.g = (my_color.g * tickstate)/40;          temp_color.g = (my_color.g * tickstate)/40;
208          temp_color.b = (my_color.b * tickstate)/40;          temp_color.b = (my_color.b * tickstate)/40;
209    
210          temp_int = SDL_MapRGB(my_srfScreen->format, temp_color.r, temp_color.g, temp_color.b);          temp_int = temp_color.MapRGB(my_srfScreen->format);
211          SDL_FillRect(my_srfScreen, (SDL_Rect *)&temp_rect, temp_int);          SDL_FillRect(my_srfScreen, (SDL_Rect *)&temp_rect, temp_int);
212  }  }
213    

Legend:
Removed from v.1.1.6.3.2.1  
changed lines
  Added in v.1.1.6.3.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26