summaryrefslogtreecommitdiff
path: root/com32/lua/test
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lua/test')
-rw-r--r--com32/lua/test/vesa.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/com32/lua/test/vesa.lua b/com32/lua/test/vesa.lua
new file mode 100644
index 00000000..4bc41fbc
--- /dev/null
+++ b/com32/lua/test/vesa.lua
@@ -0,0 +1,11 @@
+-- get nice output
+printf = function(s,...)
+ return io.write(s:format(...))
+ end
+
+modes = vesa.getmodes()
+
+for mind,mode in pairs(modes) do
+ printf("%04x: %dx%dx%d\n", mode['mode'], mode['hres'], mode['vres'], mode['bpp'])
+end
+