STR #3418

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Post Text | Post File | Prev | Next ]

STR #3418

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Promote current scaling factor to child processes
Created By:chris
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
#1 chris
09:50 Oct 20, 2017
#2 chris
09:53 Oct 20, 2017
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 chris
09:49 Oct 20, 2017
Seen with the demo program:
When changing the scaling factor with the shortcut keys, the spawned demo programs don't honour it, but always start with the initial scaling factor.

One idea to solve this, would be IMHO to export the current scaling factor to the FLTK_SCALING_FACTOR environment variable before.

I tried this for the demo program. But later I also thought this could be probably done in the library too, when scaling is changed.

So I add two patches: one for the demo program only, the other for the general solution.

Please take this patches only as outline, I was not entirely sure, which method(s) to use for obtaining the current scale factor in the demo program and how to best access the putenv() method present in the system driver.
#2 chris
05:12 Oct 21, 2017
A minor, yet important correction for the patches is neccessary:

The putenv() string must not be released, so 'static' has to be used:

   static var[50];
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]


Comments are owned by the poster. All other content is copyright 1998-2023 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.