/[eliot]/eliot/wxwin/printout.cc
ViewVC logotype

Diff of /eliot/wxwin/printout.cc

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

revision 1.8 by ipkiss, Sat Nov 5 15:48:59 2005 UTC revision 1.9 by ipkiss, Sat Nov 5 23:22:42 2005 UTC
# Line 151  GamePrintout::DrawTextLine(wxDC *dc, int Line 151  GamePrintout::DrawTextLine(wxDC *dc, int
151      w = config.getDxText(0);      w = config.getDxText(0);
152      str = wxT("");      str = wxT("");
153      // num      // num
154      if (numline < m_game.getNRounds())      if (numline < m_game.getNTurns())
155      {      {
156          str << (numline + 1);          str << (numline + 1);
157          DRW(0);          DRW(0);
158      }      }
159      // rack      // rack
160      DIM(1);      DIM(1);
161      if (numline < m_game.getNRounds())      if (numline < m_game.getNTurns())
162      {      {
163          str = wxU(m_game.getPlayedRack(numline).c_str());          str = wxU(m_game.getPlayedRack(numline).c_str());
164          DRW(1);          DRW(1);
165      }      }
166      // word      // word
167      DIM(2);      DIM(2);
168      if ((numline > 0) && (numline <= m_game.getNRounds()))      if ((numline > 0) && (numline <= m_game.getNTurns()))
169      {      {
170          str = wxU(m_game.getPlayedWord(numline - 1).c_str());          str = wxU(m_game.getPlayedWord(numline - 1).c_str());
171          DRW(2);          DRW(2);
172      }      }
173      // pos      // pos
174      DIM(3);      DIM(3);
175      if ((numline > 0) && (numline <= m_game.getNRounds()))      if ((numline > 0) && (numline <= m_game.getNTurns()))
176      {      {
177          str = wxU(m_game.getPlayedCoords(numline - 1).c_str());          str = wxU(m_game.getPlayedCoords(numline - 1).c_str());
178          DRW(3);          DRW(3);
179      }      }
180      // pts      // pts
181      DIM(4);      DIM(4);
182      if ((numline > 0) && (numline <= m_game.getNRounds()))      if ((numline > 0) && (numline <= m_game.getNTurns()))
183      {      {
184          str << m_game.getPlayedPoints(numline - 1);          str << m_game.getPlayedPoints(numline - 1);
185          DRW(4);          DRW(4);
186      }      }
187      // total points      // total points
188      if (numline == m_game.getNRounds() + 1)      if (numline == m_game.getNTurns() + 1)
189      {      {
190          str << m_game.getPlayer(0).getPoints();          str << m_game.getPlayer(0).getPoints();
191          DRW(4);          DRW(4);
# Line 253  GamePrintout::DrawPage(wxDC *dc) Line 253  GamePrintout::DrawPage(wxDC *dc)
253       basey = config.getMarginY() + config.getDyH1() + heightH + config.getDyH2();       basey = config.getMarginY() + config.getDyH1() + heightH + config.getDyH2();
254       dc->SetFont(Tfont);       dc->SetFont(Tfont);
255       heightT = (long) (dc->GetCharHeight() / mmToLogical);       heightT = (long) (dc->GetCharHeight() / mmToLogical);
256       for(i=0; i < (m_game.getNRounds()+3);i++)       for(i=0; i < (m_game.getNTurns()+3);i++)
257       {       {
258           DrawTextLine(dc,i,basey,heightT,mmToLogical);           DrawTextLine(dc,i,basey,heightT,mmToLogical);
259       }       }
# Line 274  GamePrintout::DrawGameLines(wxDC *dc, lo Line 274  GamePrintout::DrawGameLines(wxDC *dc, lo
274      float SCALE = config.getPrintLineScale();      float SCALE = config.getPrintLineScale();
275      dc->SetUserScale(SCALE,SCALE);      dc->SetUserScale(SCALE,SCALE);
276    
277      nTextLines = m_game.getNRounds() + 2;      nTextLines = m_game.getNTurns() + 2;
278      StartX = config.getMarginX();      StartX = config.getMarginX();
279      StartY = config.getMarginY();      StartY = config.getMarginY();
280    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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