summaryrefslogtreecommitdiffhomepage
path: root/digital/lcd/src/lcd.cc
diff options
context:
space:
mode:
authorGuillaume Milan2013-05-10 22:48:59 +0200
committerNicolas Schodet2013-05-10 23:31:47 +0200
commitea4ed73277af078a0ff37e806957636643c093b2 (patch)
tree6b7e95c4a389b451901b7a6d97ab990ecb5d617a /digital/lcd/src/lcd.cc
parent5f754a57410b4d0d77f56a3ef7fb45013baba7ea (diff)
digital/lcd/src: fix the problem of the position of the robot on the table
Diffstat (limited to 'digital/lcd/src/lcd.cc')
-rw-r--r--digital/lcd/src/lcd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/digital/lcd/src/lcd.cc b/digital/lcd/src/lcd.cc
index e3358d9f..60fded3d 100644
--- a/digital/lcd/src/lcd.cc
+++ b/digital/lcd/src/lcd.cc
@@ -331,12 +331,12 @@ LCD::circle ( uint16_t color , int radius , Rect pos) //draw a circle (no proble
m=m+8*x+4;
}
}
-int
+bool
LCD::belong (int x , int y) //test if the point A(x,y) belong to the screen
{
if(0<=x && x<=x_max && 0<=y && y<=y_max)
- {return 1;}
- return 0;
+ {return true;}
+ return false;
}
void
LCD::draw_char( uint16_t color ,char caract, Rect pos)//draw a caracter