Scale up dm preview in raylib

This commit is contained in:
firestarsdog
2026-07-18 23:02:55 -04:00
parent 29cb892e1a
commit d3dd2545a9
2 changed files with 10 additions and 2 deletions
@@ -755,7 +755,11 @@ class AugmentedRoadView(CameraView):
def _calc_frame_matrix(self, rect: rl.Rectangle) -> np.ndarray:
if self.stream_type == DRIVER_CAM:
return CameraView._calc_frame_matrix(self, rect)
base = CameraView._calc_frame_matrix(self, rect)
driver_view_ratio = 1.5
base[0, 0] *= driver_view_ratio
base[1, 1] *= driver_view_ratio
return base
# Get camera configuration
# TODO: cache with vEgo?
+5 -1
View File
@@ -248,7 +248,11 @@ class AugmentedRoadView(CameraView):
def _calc_frame_matrix(self, rect: rl.Rectangle) -> np.ndarray:
if self.stream_type == DRIVER_CAM:
return CameraView._calc_frame_matrix(self, rect)
base = CameraView._calc_frame_matrix(self, rect)
driver_view_ratio = 2.0
base[0, 0] *= driver_view_ratio
base[1, 1] *= driver_view_ratio
return base
# Check if we can use cached matrix
cache_key = (