Skip to content

Commit

Permalink
Fix mouse column limit on text mode (issue #4353)
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Jul 25, 2023
1 parent 4753f7a commit ecf4932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ints/mouse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,8 @@ void Mouse_AfterNewVideoMode(bool setmode) {
Bitu rows = IS_EGAVGA_ARCH?real_readb(BIOSMEM_SEG,BIOSMEM_NB_ROWS):24;
if ((rows == 0) || (rows > 250)) rows = 25 - 1;
mouse.max_y = 8*(rows+1) - 1;
uint16_t cols = real_readb(BIOSMEM_SEG, BIOSMEM_NB_COLS);
mouse.max_x = cols * 8 - 1;
}
break;
}
Expand Down

0 comments on commit ecf4932

Please sign in to comment.