ref: 56bc73e5947e2134359c5e89b4483895d51399cb
parent: 453654e80975b11ee9283afa4e6efd9540d0cd42
author: qwx <qwx@sciops.net>
date: Thu Jul 22 19:28:03 EDT 2021
vid: lower resolution limit below that, don't crash, just draw off-screen
--- a/qw/vid.c
+++ b/qw/vid.c
@@ -94,8 +94,15 @@
else if(scale > 16)
scale = 16;
}else{
+ /* lower than 320x240 doesn't really make sense,
+ * but at least this prevents a crash, beyond that
+ * it's your funeral */
vid.width = Dx(screen->r);
+ if(vid.width < 320)
+ vid.width = 320;
vid.height = Dy(screen->r);
+ if(vid.height < 160)
+ vid.height = 160;
}
if(d_pzbuffer != nil){
D_FlushCaches();
--- a/vid.c
+++ b/vid.c
@@ -94,8 +94,15 @@
else if(scale > 16)
scale = 16;
}else{
+ /* lower than 320x240 doesn't really make sense,
+ * but at least this prevents a crash, beyond that
+ * it's your funeral */
vid.width = Dx(screen->r);
+ if(vid.width < 320)
+ vid.width = 320;
vid.height = Dy(screen->r);
+ if(vid.height < 160)
+ vid.height = 160;
}
if(d_pzbuffer != nil){
D_FlushCaches();