It is currently Fri Nov 17, 2017 11:55 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: DrawText() on Retina Display
PostPosted: Fri Feb 10, 2017 2:24 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Dec 08, 2003 7:50 pm
Posts: 154
Location: Germany
Hi everyone,

I currently purchased a retina MacBook. When compiling a program using DrawText() in a CanvasGadget() I recognized that the Text now looks very blurry. Searching in the forum did not give any solutions or mentioning of this problem, but I think it has to do with the Retina display.

Is there something I have to consider when coding or is it simply a PB bug?

Thanks and best regards,
Christian


Top
 Profile  
Reply with quote  
 Post subject: Re: DrawText() on Retina Display
PostPosted: Fri Feb 10, 2017 4:12 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3000
Location: Netherlands
A retina display uses 4 physical pixels (2x2) for 1 logical pixel.
The image PureBasic uses for CanvasGadget is not a @2x retina image.
I think it should look the same as on a non retina display.
It it is even more blurry it probably is a bug.

_________________
MacOS 10.13.1 High Sierra, PB 5.60 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: DrawText() on Retina Display
PostPosted: Fri Feb 10, 2017 9:13 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Dec 08, 2003 7:50 pm
Posts: 154
Location: Germany
Thanks for your reply. Unfortunately it looks different. It is much sharper on the non-retina display. I tried to make a screenshot for comparison:

Image

The upper part is taken from the program compiled and displayed on a Retina display, the lower one is taken from a non-retina MacBook. So, you think its a bug and there is nothing I can or have to do?


Top
 Profile  
Reply with quote  
 Post subject: Re: DrawText() on Retina Display
PostPosted: Fri Feb 10, 2017 9:31 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3000
Location: Netherlands
Might be a good idea for Fred to take a look at it.
I don't know what is causing it but maybe it can be solved by something like setting setImageInterpolation from NSGraphicsContext or by shifting coordinates by half a pixel.

_________________
MacOS 10.13.1 High Sierra, PB 5.60 x64


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye