fix(win32 gui): round down CellSize to avoid gaps between cells
This commit is contained in:
parent
e1f0a4d074
commit
5c6c9acaa9
1 changed files with 2 additions and 2 deletions
|
@ -541,8 +541,8 @@ fn getCellSize(text_format: *win32.IDWriteTextFormat) XY(i32) {
|
|||
if (hr < 0) fatalHr("GetMetrics", hr);
|
||||
}
|
||||
return .{
|
||||
.x = @intFromFloat(@ceil(metrics.width)),
|
||||
.y = @intFromFloat(@ceil(metrics.height)),
|
||||
.x = @as(i32, @intFromFloat(@floor(metrics.width))),
|
||||
.y = @as(i32, @intFromFloat(@floor(metrics.height))),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue