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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user