Get desktop res?
Blitz3D Forums/Blitz3D Programming/Get desktop res?| 
 | ||
| This is probably a long-shot, but is there any way to get the desktop res without resorting to a DLL/userlib call? I'm messing with a pure 2D vector GFX library and would not only like to keep it resolution independant, I'd also like to preserve a 1:1 aspect ratio (so a displayed square will look properly square, regarless of screen res). In order to achieve this, I need to know what the desktop res is. If this can't be done, I may simply not bother supporting a 1:1 aspect ratio - it seems Blitz3D itself doesn't bother. :P Thanks. | 
| 
 | ||
| You need to use userlibbage. This will help: http://www.blitzbasic.com/codearcs/codearcs.php?code=829 ..particularly this bit: win\DesktopW = User32_GetSystemMetrics(SM_CXSCREEN) win\DesktopH = User32_GetSystemMetrics(SM_CYSCREEN) | 
| 
 | ||
| Ah, OK, so you do need a userlib, then. Thanks, Beaker. | 
| 
 | ||
| Don't know if it helps but blitzplus can get the desktop res, probably doesn't help much though if you want to do it with blitz3d. | 
| 
 | ||
| Yeah, I saw that it the archives, but I'm using B3D. |