Browse Source

Fix viewport size when using split view

luboslenco 6 ngày trước cách đây
mục cha
commit
7f20343134
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      paint/sources/base.ts

+ 1 - 1
paint/sources/base.ts

@@ -169,7 +169,7 @@ function base_w(): i32 {
 		res = iron_window_width();
 	}
 	if (context_raw.view_index > -1) {
-		res = math_floor(res / 2);
+		res = math_ceil(res / 2);
 	}
 	if (context_raw.paint2d_view) {
 		res = ui_view2d_ww;