mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-06 01:56:28 +02:00
Improve UI
This commit is contained in:
parent
2045a1250a
commit
a762ff6521
1 changed files with 3 additions and 3 deletions
|
@ -204,9 +204,9 @@ void BoardCanvas::DrawBoard(wxDC &dc) {
|
|||
|
||||
// Draw numbers
|
||||
dc.SetFont(wxFont(*wxNORMAL_FONT).MakeBold());
|
||||
if(file==0){ // Right numbers
|
||||
if(file==7){ // Right numbers
|
||||
dc.DrawText(wxString((char)('1'+7-rank)),
|
||||
x+square_width+numbers_size.x/2,y+square_width/2-numbers_size.y/2);
|
||||
x-numbers_size.x*1.5,y+square_width/2-numbers_size.y/2);
|
||||
}
|
||||
if(rank==7){ // Bottom numbers
|
||||
dc.DrawText(wxString((char)('a'+7-file)),
|
||||
|
@ -252,7 +252,7 @@ void BoardCanvas::DrawBoard(wxDC &dc) {
|
|||
badgeY = boardY + (8 * square_width) - badgeWidth;
|
||||
}
|
||||
}
|
||||
wxRect badge(boardX + (8 * square_width) + badgeWidth, badgeY, badgeWidth,
|
||||
wxRect badge(boardX + (8 * square_width) + badgeWidth/2, badgeY, badgeWidth,
|
||||
badgeWidth);
|
||||
dc.DrawRectangle(badge);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue