Re: [code] [textadept] retina displays

From: Mitchell <m.att.foicica.com>
Date: Wed, 3 Apr 2013 09:57:40 -0400 (Eastern Daylight Time)

Hi John,

On Wed, 3 Apr 2013, John Benediktsson wrote:

> Hi Mitchell,
>
>
>> Thanks for your efforts. Perhaps asking the Scintilla mailing list could
>> lead you somewhere.
>
>
> SUCCESS!
>
> I asked on the Scintilla mailing list, and it turns out you need to disable
> Scintilla's buffering (something the cocoa backend also does). The
> buffering interferes by rendering into (what is on a retina display) a
> half-resolution bitmap.
>
> ```
> void ScintillaGTK::Initialise() {
> // Tell Scintilla not to buffer: Quartz buffers drawing for us.
> WndProc(SCI_SETBUFFEREDDRAW, 0, 0);
> ```
>
> In addition to the NSHighResolutionCapable change to Info.plist, I believe
> this is the only patch necessary against the Scintillla GTK backend (the
> previous patch[1] seems unnecessary since LogPixelsY already returns 72?).
>
> If this approach looks good to you, I'd love to test another binary for you
> when you get some time.

Yay! In Textadept.app/Contents/Resources/themes/light/view.lua, or the
view.lua in whatever theme you have, please uncomment the

   --buffer.buffered_draw = false

line and see if that works with an unpatched Scintilla.

If it does that would be fantastic!

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 03 Apr 2013 - 09:57:40 EDT

This archive was generated by hypermail 2.2.0 : Thu 04 Apr 2013 - 06:36:18 EDT