Liberty BASIC Community Forum
The Liberty BASIC Language >> Liberty BASIC Pro >> DisplayWidth=1280 DisplayHeight=720
http://libertybasic.conforums.com/index.cgi?board=lbatest&action=display&num=1411649271

DisplayWidth=1280 DisplayHeight=720
Post by Guy Canida on Sep 25th, 2014, 07:47am

DisplayWidth and DisplayHeight values are no longer those of the actual display, ie 1920 1080 but 1280 and 720 !
Any api dll that I tried (GetWindowRect, GetSystemMetrics, GetDeviceCaps) return 1280 and 720.

On the PC where this happens, I still have a tkn called with a renamed run404.exe that works fine.
I copied the program folder to another location and the tkn fails and return 1280 by 720 !

On 2 other PCs, I've no problems.

I found a fix. Set the pixel depth to 16 instead of the default 32.

I run LB 4.04 pro licensed.

Any idea what to do ?

Thanks.
Guy.
Re: DisplayWidth=1280 DisplayHeight=720
Post by Chris Iverson on Sep 26th, 2014, 2:32pm

I'm afraid I don't know what the problem is.

LB is able to detect my screen size just fine.


Do you have LB configured with any application compatibility settings?