Skip to content

Commit

Permalink
Clean text going out of bounds in raw restore mode
Browse files Browse the repository at this point in the history
  • Loading branch information
suloku committed Apr 6, 2017
1 parent 3d9720c commit ba023ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/freetype.c
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,11 @@ void showCardInfo(int sel){
//clear right pane, but just the card info
int bgcolor = getcolour(84,174,211);
DrawBoxFilled(375, 165, 605, 390, bgcolor);
//clear the right side just in case we went offscreen with previous comment
DrawVLine (606, 145, 390, CvtRGB(84,174,211,183,209,240));
DrawVLine (608, 145, 390, CvtRGB(230,232,250,242,243,252));
DrawBoxFilled(610, 145, 640, 390, getcolour(255,255,255));

int y = 190, x = 378;
int err;
char txt[1024];
Expand Down

0 comments on commit ba023ef

Please sign in to comment.