Hi,
Does anyone know how to get the current display resolution under Linux? I'm guessing it's going to involve importing C and doing X11 API junk since ExamineDesktop() doesn't work.
Any help would be hugely appreciated.
Cheers,
G.
Get Display resolution
Get Display resolution
Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM
Re: Get Display resolution
Works fine here!gavindi wrote:since ExamineDesktop() doesn't work.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Get Display resolution
It was unsupported in PB5.0, so is it in 5.1 that it works? Or do I have it wrong? The documentation says it's only for Windows & OSX.
Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM
Re: Get Display resolution
All helpfiles on my PC, from PB3.94 to 5.10 say: supported OS Allgavindi wrote:The documentation says it's only for Windows & OSX.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Get Display resolution
Yep, my bad. It only the DesktopFrequency() that doesn't support Linux. I think I've been staring at my monitor for too long. I'm going outside for fresh air. 

Using Ubuntu 14.04 x64, Intel4700HD Graphics, 16GB RAM