GraphicsModes()
Archives Forums/Linux Discussion/GraphicsModes()
| ||
Hi, does the GraphicsModes() function actually work under Linux? I only ever get the current resolution returned, where as in Windows I get plenty of results. Thanks -Chris |
| ||
graphicmodes.bmx (from the blitzmax.com forums)SuperStrict SetGraphicsDriver GLMax2DDriver() For Local mode:TGraphicsMode=EachIn GraphicsModes() Print mode.width+"x"+mode.height+" "+mode.hertz+","+mode.depth Next EndGraphics ./bmk makeapp -x -r "/home/ronny/Arbeit/Programmieren/Projekte/Apps/graphicmodes.bmx" (im Verzeichnis: /home/ronny/Arbeit/Programmieren/BlitzMax/bin) Compiling:graphicmodes.bmx flat assembler version 1.68 (32768 kilobytes memory) 3 passes, 3711 bytes. Linking:graphicmodes Executing:graphicmodes 1280x1024 60,24 1280x1024 75,24 1280x960 60,24 1152x864 75,24 1152x864 60,24 1280x768 60,24 1280x720 60,24 1024x768 75,24 1024x768 70,24 1024x768 60,24 800x600 72,24 800x600 75,24 800x600 60,24 800x600 56,24 640x480 75,24 640x480 73,24 640x480 67,24 640x480 60,24 Kompilierung erfolgreich beendet. Seems it it not the fault of linux. Maybe you limit it with an odd and old config of x.org (scanlines etc.) bye Ron edit: inserted sample code Last edited 2012 |
| ||
Ahh ok, thanks Derron, I guess it's my PC and not BlitzMax that is at fault here. I am using AMD drivers and I get the "Unsupported Hardware" watermark in the bottom right hand corner. It's a relatively new and clean install of Ubuntu 12.04 so I would assume it's not a config issue, but if it was, I wouldn't know where to look! |
| ||
which drivers? "radeon" or the ones from AMD ? I use the propriety ones but not the most current as they seem to have problems with my LLano gpu. bye Ron |
| ||
I'm not entirely sure actually, I will have to try updating them and see what happens :) |