[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] Changes to eliot/wxwin/gfxboard.cc
From: |
eliot-dev |
Subject: |
[Eliot-dev] Changes to eliot/wxwin/gfxboard.cc |
Date: |
Fri, 04 Nov 2005 15:01:10 -0500 |
Index: eliot/wxwin/gfxboard.cc
diff -u eliot/wxwin/gfxboard.cc:1.5 eliot/wxwin/gfxboard.cc:1.6
--- eliot/wxwin/gfxboard.cc:1.5 Sun Oct 23 14:53:44 2005
+++ eliot/wxwin/gfxboard.cc Fri Nov 4 20:00:06 2005
@@ -16,8 +16,6 @@
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/* $Id: gfxboard.cc,v 1.5 2005/10/23 14:53:44 ipkiss Exp $ */
-
#include <string.h>
#include <math.h>
#include <ctype.h>
@@ -66,7 +64,7 @@
{
size = GetClientSize();
- board_size = size.GetWidth() < size.GetHeight() ?
+ board_size = size.GetWidth() < size.GetHeight() ?
size.GetWidth() : size.GetHeight();
tile_size = (int)((float)board_size / (float)(BOARD_SIZE)) - LINE_WIDTH;
@@ -188,7 +186,7 @@
wxCoord width, height;
wxCoord posx, posy;
- // redraw borders
+ // redraw borders
if (row && column)
dc->DrawRectangle(column*(tile_size+LINE_WIDTH) + TopLeft.x,
row*(tile_size+LINE_WIDTH) + TopLeft.y,
@@ -210,7 +208,7 @@
dc->GetTextExtent(wxs,&width,&height);
posx = TopLeft.x + column*(tile_size+LINE_WIDTH) + LINE_WIDTH +
(tile_size - width) / 2;
- posy = TopLeft.y + row*(tile_size+LINE_WIDTH) + LINE_WIDTH +
+ posy = TopLeft.y + row*(tile_size+LINE_WIDTH) + LINE_WIDTH +
(tile_size - height) / 2;
dc->DrawText(wxs,posx,posy);
}
@@ -241,7 +239,7 @@
wxColour colLx2 = config.getColour(wxString(BCOLOURLX2));
wxPen *LinesPen = wxThePenList->FindOrCreatePen(colLines, 1, wxSOLID);
- wxBrush *BackgroundBrush = wxTheBrushList->FindOrCreateBrush(colBackground,
+ wxBrush *BackgroundBrush = wxTheBrushList->FindOrCreateBrush(colBackground,
wxSOLID);
wxBrush *Wx3Brush = wxTheBrushList->FindOrCreateBrush(colWx3, wxSOLID);
- [Eliot-dev] Changes to eliot/wxwin/gfxboard.cc,
eliot-dev <=