fixed map outline in map edit overlapping status bar
This commit is contained in:
parent
8d79862124
commit
92afb74c8a
|
@ -423,20 +423,20 @@ pub(crate) fn run_mapedit() {
|
|||
let ye = ys + stuff.gsa1.bg[0].size.y * TILE_SIZE as i32 + 1;
|
||||
if xs >= 16 && xs < screen_size.x {
|
||||
let starty = (ys + 1).max(0);
|
||||
let len = ye.min(screen_size.y) - starty;
|
||||
let len = ye.min(screen_size.y - 10) - starty;
|
||||
screen.draw_vline(IVec2 { x: xs, y: starty }, len, 0xfc);
|
||||
}
|
||||
if xe >= 16 && xe < screen_size.x {
|
||||
let starty = (ys + 1).max(0);
|
||||
let len = ye.min(screen_size.y) - starty;
|
||||
let len = ye.min(screen_size.y - 10) - starty;
|
||||
screen.draw_vline(IVec2 { x: xe, y: starty }, len, 0xfc);
|
||||
}
|
||||
if ys >= 0 && ys < screen_size.y {
|
||||
if ys >= 0 && ys < (screen_size.y - 10) {
|
||||
let startx = (xs + 1).max(16);
|
||||
let len = xe.min(screen_size.x) - startx;
|
||||
screen.draw_hline(IVec2 { x: startx, y: ys }, len, 0xfc);
|
||||
}
|
||||
if ye >= 0 && ye < screen_size.y {
|
||||
if ye >= 0 && ye < (screen_size.y - 10) {
|
||||
let startx = (xs + 1).max(16);
|
||||
let len = xe.min(screen_size.x) - startx;
|
||||
screen.draw_hline(IVec2 { x: startx, y: ye }, len, 0xfc);
|
||||
|
|
Loading…
Reference in New Issue