graphics/graphics-ipc: Use u32 fields in Damage

The fields should never be negative and this saves a couple of casts.
This commit is contained in:
bjorn3
2025-03-06 19:41:05 +01:00
parent ee3382aed0
commit 92295f2ea4
5 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ impl TextScreen {
} else {
damage.push(Damage {
x: 0,
y: i32::try_from(change).unwrap() * 16,
y: u32::try_from(change).unwrap() * 16,
width,
height: 16,
});