diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-08-23 16:57:39 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-08-23 16:57:39 +0000 |
| commit | f07570e92fcea5aed0960d284af19e97e4f5eff3 (patch) | |
| tree | 81abc0d327692896b1c81fe4f0c7f992630cf351 /src/drivers/Xlib | |
| parent | 616bcb635773d87a7e89c928c8d7f2104da1f9d8 (diff) | |
Fix compiler warnings and simplify Fl_X11_Screen_Driver::init().
This function sets the screen dimensions and tries to use Xrandr,
Xinerama, and basic X11 functions (in this order) to get the screen
sizes and resolutions (dpi).
This commit simplifies conditional compilation and fixes "unused variable"
compiler warnings under certain conditions as mentioned by Greg in
fltk.general, thread "Can not change font size in Kubuntu 16.04" on
Mon, 15 Aug 2016 00:25:32 -0700.
Also merged in small improvements of branch-1.3-porting, basically "the
same commit" as svn r11889 in branch-1.3.
Todo: dpi resolutions acquired by using Xrandr are not per screen but use
dpi value of screen 0 for all screens. Check if this can be improved.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Xlib')
0 files changed, 0 insertions, 0 deletions
