feat: Update viewport calculations in renderers for consistent height handling and improve map rendering logic
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -38,10 +38,15 @@ void main() {
|
||||
}
|
||||
}
|
||||
|
||||
final int hudProbeX = frameMap.width ~/ 2;
|
||||
final int hudProbeY = frameMap.height - 2;
|
||||
final int hudProbeIndex = (hudProbeY * frameMap.width) + hudProbeX;
|
||||
|
||||
expect(changedPixels, greaterThan(mapPixels.length ~/ 5));
|
||||
expect(mapPixels.contains(ColorPalette.vga32Bit[6]), isTrue);
|
||||
expect(mapPixels.contains(ColorPalette.vga32Bit[12]), isTrue);
|
||||
expect(mapPixels.contains(ColorPalette.vga32Bit[10]), isTrue);
|
||||
expect(mapPixels[hudProbeIndex], equals(normalPixels[hudProbeIndex]));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user