Changeset b0908ea in git for src/aven.cc


Ignore:
Timestamp:
29/08/19 06:19:31 (7 weeks ago)
Author:
Olly Betts <olly@…>
Branches:
master
Children:
fc43dda
Parents:
4993263
Message:

Disable scaling for hidpi displays with GTK3

The OpenGL code needs work before this will work usefully, so just
disable for now (which simulates how things are when using GTK2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aven.cc

    r4993263 rb0908ea  
    182182    // https://trac.wxwidgets.org/ticket/17702
    183183    // Setting GDK_BACKEND=x11 is the recommended workaround, and it seems to
    184     // work to set it here.
     184    // work to set it here.  GTK2 doesn't support Wayland, so doesn't need
     185    // this.
    185186    setenv("GDK_BACKEND", "x11", 1);
     187    // FIXME: The OpenGL code needs work before scaling on hidpi displays will
     188    // work usefully, so for now disable such scaling (which simulates how
     189    // things are when using GTK2).
     190    setenv("GDK_SCALE", "1", 1);
    186191#endif
    187192#ifdef __WXMAC__
Note: See TracChangeset for help on using the changeset viewer.