Menu

#289 Poor wxSmith display quality on OSX Retina display

Undefined
open
nobody
Bug_Report
2022-09-28
2016-01-20
Daniel Kulp
No

Once wxWidgets applies the patch I added to http://trac.wxwidgets.org/ticket/17302 then the latest SVN code for the OSX build is "usable" for wxSmith stuff, but the display quality is very poor as the capture bitmap is scaled down to logical window size. This can be fixed easily by creating the bitmap with the scaled option:

Index: src/plugins/contrib/wxSmith/wxwidgets/wxsdrawingwindow.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/wxsdrawingwindow.cpp  (revision 10669)
+++ src/plugins/contrib/wxSmith/wxwidgets/wxsdrawingwindow.cpp  (working copy)
@@ -106,7 +106,8 @@

         // Generating new bitmap
         delete m_Bitmap;
-        m_Bitmap = new wxBitmap(Size.GetWidth(),Size.GetHeight());
+        m_Bitmap = new wxBitmap();
+        m_Bitmap->CreateScaled(Size.GetWidth(),Size.GetHeight(), -1, GetContentScaleFactor());

         // Resizing panel to cover whole window
         int X, Y;

Related

Tickets: #844

Discussion

  • Andrew Cottrell

    Andrew Cottrell - 2022-07-06

    Anyone got any idea what the steps/process is to crate the very poor display quality as I am not familiar with wxSmith.

    There are issues with the wxSmith tab control dialog at the bottom of the edit window, but that is to do with layout than display quality. This if for another ticket.

    Attached is a snippet of my C::B running on Big Sur.

     
  • Andrew Cottrell

    Andrew Cottrell - 2022-09-22

    Daniel, Can you try the latest C::B source as Miguel has made a number of changes in the last month that may have resolved the issue you were having.

    Can you please let us know if it latest C::B source build does or does not resolve the issue.

    Thanks.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-25

    I have tested the patch and C::B hangs on boot.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-25
    • Type: Patch --> Bug_Report
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-09-28
    • labels: osx --> osx, hidpi
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.