Skip to content

Commit

Permalink
鼠标显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed Apr 15, 2016
1 parent 005f8bd commit 6231343
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 11_day/bootpack.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ void HariMain(void)
if (my < 0) {
my = 0;
}
if (mx > binfo->scrnx - 16) {
mx = binfo->scrnx - 16;
if (mx > binfo->scrnx - 1) {
mx = binfo->scrnx - 1;
}
if (my > binfo->scrny - 16) {
my = binfo->scrny - 16;
if (my > binfo->scrny - 1) {
my = binfo->scrny - 1;
}
sprintf(s, "(%3d, %3d)", mx, my);
boxfill8(buf_back, binfo->scrnx, COL8_008484, 0, 0, 79, 15); /* 消坐标 */
Expand Down

0 comments on commit 6231343

Please sign in to comment.