<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1525</bug_id>
          
          <creation_ts>2025-08-22 06:17:37 +0200</creation_ts>
          <short_desc>SWT High-DPI X11/GTK: Wrong Scaling since SWT 4.36 (update)</short_desc>
          <delta_ts>2025-08-22 06:18:37 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>swt</component>
          <version>2.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>21c52cf660ce4c7afbf4fcc796310357bb299d9b</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7239</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-22 06:17:37 +0200</bug_when>
    <thetext>After updating SWT to 4.36 (commit f71c29bace8ce579470b29e8e2aeca99e43f632a)
the dpi scaling on X11/GTK fails, e.g. via GDK_SCALE=2 environment variable.

## DPIUtil.autoScaleUp() and `useCairoAutoScale`
The (new) GTK implementation sets `useCairoAutoScale` to true,
avoiding scaling the window-coordinates up.
Hence we have to duplicate the scaleUp/scaleDown using the device scale-factor.

## GTK Scrollable.getClientAreaInPixels()
SWTAccessor.getClientAreaInPixels() uses Scrollable.getClientAreaInPixels(),
however the current GTK implementation doesn&apos;t returned the scaled value.
Hence we have to autoScaleUp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7240</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2025-08-22 06:18:37 +0200</bug_when>
    <thetext>Resolved as described</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>