Page 1 of 1
Get Display resolution
Posted: Tue Feb 19, 2013 9:08 am
by gavindi
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.
Re: Get Display resolution
Posted: Tue Feb 19, 2013 9:28 am
by ts-soft
gavindi wrote:since ExamineDesktop() doesn't work.
Works fine here!
Re: Get Display resolution
Posted: Tue Feb 19, 2013 10:40 am
by gavindi
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.
Re: Get Display resolution
Posted: Tue Feb 19, 2013 10:44 am
by ts-soft
gavindi wrote:The documentation says it's only for Windows & OSX.
All helpfiles on my PC, from PB3.94 to 5.10 say: supported OS All
Re: Get Display resolution
Posted: Tue Feb 19, 2013 8:10 pm
by gavindi
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.
