shithub: rc

Download patch

ref: 17b6f737c690690a6fb1d925bfd6a6ced7a4bda6
parent: 37547442c7ac5c76d633844fd6fd2c622f6580f0
author: sl <sl@k>
date: Thu Mar 5 23:20:40 EST 2026

m: handle more resolutions.

--- a/m
+++ b/m
@@ -1,5 +1,5 @@
 #!/bin/rc
-# 2026-02-03T23:17:41-05:00
+# 2026-03-05T23:17:21-05:00
 rfork e
 mcmd=()
 scr=()
@@ -9,15 +9,18 @@
 scr=(`{cat /dev/draw/new >[2]/dev/null})
 h=$scr(12)
 switch($h){
-case 1504 1440
-	x=1600
+case 1504
+	x=1504
 	y=$h
+case 1440
+	x=1600
+	y=$h
 case 1200
 	x=1400
 	y=$h
 case *
 	x=1400
-	y=1050
+	y=$h
 }
 switch($1){
 case m
--