Package: wxmaxima Version: 17.10.1-1 Severity: minor Tags: patch Hi,
This version of wxmaxima, as compared to 16.04.2, applies unnecessary scaling to the toolbar icons. The result of this scaling is very aestetically unpleasing to the point of being disturbing. If you look into the source code of ToolBar.c of ver. WxMaxima 16.04.2 you will find that the scaling is only applied when running on Windows or Mac, and disabled elsewhere. So I did the same change to ver. 17.10.1, which you will find in the attached patch. I have checked that with this patch the toolbar icons look much better in all resolutions available on my display, which are 1920x1080 60.00*+ 1680x1050 59.95 1600x900 60.00 1440x900 59.89 1280x1024 75.02 60.02 1280x800 59.81 1280x720 60.00 1152x864 75.00 1024x768 75.03 70.07 60.00 800x600 75.00 72.19 60.32 56.25 640x480 75.00 72.81 59.94 -- System Information: Debian Release: 9.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable'), (50, 'testing'), (10, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages wxmaxima depends on: ii ibus-gtk3 1.5.14-3 ii libc6 2.24-11+deb9u1 ii libgcc1 1:6.3.0-18 ii libstdc++6 6.3.0-18 ii libwxbase3.0-0v5 3.0.3.1+dfsg2-1 ii libwxgtk3.0-0v5 3.0.3.1+dfsg2-1 ii maxima 5.38.1-8+b1 Versions of packages wxmaxima recommends: ii maxima-doc 5.38.1-8 Versions of packages wxmaxima suggests: ii fonts-jsmath 0.090709+0-3 ii texlive-latex-extra 2016.20170123-5 -- no debconf information
Description: Removes ugly icon scaling in toolbar Author: Stanislav Maslovski <stanislav.maslov...@gmail.com> --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: <vendor|upstream|other>, <url of original patch> Bug: <url in upstream bugtracker> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: <no|not-needed|url proving that it has been forwarded> Reviewed-By: <name and email of someone who approved the patch> Last-Update: 2017-11-09 --- wxmaxima-17.10.1.orig/src/ToolBar.cpp +++ wxmaxima-17.10.1/src/ToolBar.cpp @@ -43,9 +43,11 @@ wxImage ToolBar::GetImage(wxString name) Dirstructure dirstructure; img = wxImage(dirstructure.ConfigToolbarDir() + wxT("/") + name + wxT(".png")); } +/* double imgWidth = wxGetDisplayPPI().x*24/72; double scaleFactor = imgWidth / img.GetWidth(); img.Rescale(img.GetWidth()*scaleFactor,img.GetHeight()*scaleFactor,wxIMAGE_QUALITY_HIGH ); + */ return img; }