Page 1 of 1

Canvas & High Resolution?

Posted: Sat Jan 04, 2014 4:51 pm
by Poshu
Hello,
I was playing with the High Resolution Capable flag and I can't succeed to get the canvas to work in high definition mode; while every other gadgets are fine. Any help?

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 3:36 am
by WilliamL
High Resolution Capable flag
I'm not familiar with this. How do you use it?

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 2:55 pm
by Poshu
Quite easily:add the High Resolution Capable flag to your application plist and set it to true, then make sure that "Open in low resolution" (I'm gessing here: my OSX is in french actually...) is not checked in your application info.
Here is my application in default mode, and the same with the High Resolution flag set to True. As you can see, while the button and the window bar are in HD indeed, my canvas are sill in their pixelated glory...

BTW, you can do this to the IDE itself, it makes it retina compatible and it's quite lovely to do so (except that the tab bar are still in low res too...)

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 6:35 pm
by WilliamL
Poshu,

Thanks for the explanation! I, also, see the difference in you lo-res and hi-res picture.

I will play with the plist and see if I can get the ListView Gadget to display sharply as I reported in the MacBugs forum. http://purebasic.fr/english/viewtopic.php?f=24&t=57297

[later]
Holy cow! What a difference! It took moving the app (out then in) to get the new plist to kick in but once it did the font was sharp and even looked different (much thinner). I'm stunned and interested to see what other retina users experience.

Oh,

Code: Select all

<key>NSHighResolutionCapable</key>
<true/>

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 7:23 pm
by Poshu
Yeah, and purebasic's IDE is now readable again :D It was the very first thing I did when I got my mac book pro retina.
But we need a way to make the canvas (and I guess anything with image, even though I did not check) behave now.

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 8:42 pm
by WilliamL
How did you get the IDE in Hi-res mode? My Info box for 'lo res' is un-clickable. You didn't change the plist for the IDE did you?

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 8:43 pm
by Poshu
I did. It works fine.

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 9:10 pm
by WilliamL
I added the flag to my IDE and it does look much better. (except for the tabs)

I wonder if Fred could add the flag to his release (of the IDE) or if it would cause other problems? (..just thinking out loud)

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 9:57 pm
by wilbert
Poshu wrote:Hello,
I was playing with the High Resolution Capable flag and I can't succeed to get the canvas to work in high definition mode; while every other gadgets are fine. Any help?
Retina requires higher resolution images @2x. The canvas is essentially a bitmap image.
I don't think it would be possible to make it look good on a retina screen without doubling the resolution.
This means all gadgets based on the canvas gadget (including the IDE tabs) won't look as sharp as the other gadgets on a retina screen.

Re: Canvas & High Resolution?

Posted: Sun Jan 05, 2014 10:25 pm
by WilliamL
Hi wilbert!

Yeah, I've seen how the picts are different in Pixelmator (half size). The difference between retina and the regular resolution is going to be a continuing problem. Maybe if Apple goes all retina it will become the new standard and everything can be made to look good. Until then it is going to be a struggle between the retina users and everyone else.

Thanks for the explanation.

Re: Canvas & High Resolution?

Posted: Mon Jan 06, 2014 2:05 am
by Poshu
wilbert wrote: Retina requires higher resolution images @2x. The canvas is essentially a bitmap image.
I don't think it would be possible to make it look good on a retina screen without doubling the resolution.
This means all gadgets based on the canvas gadget (including the IDE tabs) won't look as sharp as the other gadgets on a retina screen.
I know that, and I handle the dpi awarness on Windows, but I don't know how to make it work on OSX since my canvas is doubled without asking T_T