/[enigma]/enigma/src/menus.cc
ViewVC logotype

Diff of /enigma/src/menus.cc

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

revision 1.3 by dheck, Sun Jan 12 19:39:50 2003 UTC revision 1.4 by dheck, Sun Jan 19 17:24:54 2003 UTC
# Line 200  LevelWidget::draw (px::GC &gc, const px: Line 200  LevelWidget::draw (px::GC &gc, const px:
200            
201      const int imgw = 120; //238;      const int imgw = 120; //238;
202      const int imgh = 78;      const int imgh = 78;
203      const int hgap = 20, vgap=30;      const int hgap = 30, vgap=30;
204    
205      const int x0 = get_x()+(get_w() - width*(imgw+hgap)+hgap)/2;      const int x0 = get_x()+(get_w() - width*(imgw+hgap)+hgap)/2;
206      const int y0 = get_y()+(get_h() - height*(imgh+vgap))/2; //get_y(); //30;      const int y0 = get_y()+(get_h() - height*(imgh+vgap))/2; //get_y(); //30;
# Line 218  LevelWidget::draw (px::GC &gc, const px: Line 218  LevelWidget::draw (px::GC &gc, const px:
218    
219              int xpos = x0 + x*(imgw + hgap);              int xpos = x0 + x*(imgw + hgap);
220              int ypos = y0 + y*(imgh + vgap);              int ypos = y0 + y*(imgh + vgap);
221              areas.push_back(Rect(xpos-hgap/2, ypos-hgap/2,              areas.push_back(Rect(xpos-10, ypos-10, imgw+20, imgh+35));
                                  imgw+hgap, imgh+hgap+vgap/2));  
222    
223              string fname = string("levels/") + levels[i].filename + ".png";              string fname = string("levels/") + levels[i].filename + ".png";
224              if (Surface *img = cache.get(enigma::FindDataFile(fname)))              if (Surface *img = cache.get(enigma::FindDataFile(fname)))
# Line 462  namespace Line 461  namespace
461      class StereoButton : public TextButton {      class StereoButton : public TextButton {
462          void update() {          void update() {
463              if (options::StereoSeparation == 0)              if (options::StereoSeparation == 0)
464                  set_text("Stereo off");                  set_text("Mono");
465              else if (options::StereoSeparation > 0)              else if (options::StereoSeparation > 0)
466                  set_text("Stereo on");                  set_text("Stereo l-r");
467              else              else
468                  set_text("Stereo inversed");                  set_text("Stereo r-l");
469          }          }
470          // ActionListener interface.          // ActionListener interface.
471          void on_action(Widget *) {          void on_action(Widget *) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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