Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#42 Blank window when using wxWidgets driver in Windows

closed
Werner Smekal
None
5
2008-02-20
2007-06-14
Chris Mumby
No

After building project files for VC++2005 Express from the latest svn checkout and compiling the libs and then the examples, running any of the demo's with the wxWidgets driver selected always resulted in a blank screen (client area). That is, there was a window and there was also a white cursor.

After managing to get VC++ to step through the library code I saw that the wxDc object never got created 9remained null) and that the flags in wxPlDev for freetype, antiliasing were uninitialised and thus some non-zero number which when used in an if statement to test the flag for true or false always resulted in true. So i zeroed these in the c'tor of wxPlDev and recompiled, and the examples now work, I can see the graphs.

This is my first bug report, and have done a diff (from TortoiseSVN) which although I have never used assume it is easy to use this file with a program to patch the file. the file modified is wxwidgets.cpp (4 lines) in the folder drivers. Only tested on winxp SP2 and wxWidgets cvs head, although i had the same problem when i last tried with 2.8.

I hope this is the right place for the patch.
Chris Mumby

diff:

-----------------------------------------------------
Index: wxwidgets.cpp
===================================================================
--- wxwidgets.cpp (revision 7713)
+++ wxwidgets.cpp (working copy)
@@ -502,6 +502,11 @@
plstate_color0 = false;
plstate_color1 = false;

+ //disable for now
+ freetype=0;
+ smooth_text=0;
+ antialized=0;
+
#ifdef HAVE_AGG
m_rendering_buffer=NULL;
m_strokewidth=1.0;

Discussion

  • Arjen Markus
    Arjen Markus
    2007-06-15

    Logged In: YES
    user_id=400048
    Originator: NO

    We usually use the plplot-devel list or plplot-general list for reporting and discussing
    such problems. I will forward this on the list.

    Regards,

    Arjen

     
  • Werner Smekal
    Werner Smekal
    2008-02-20

    Logged In: YES
    user_id=899567
    Originator: NO

    Thank you for the bug report and sorry for the long delay. I made similar changes to the wxWidgets driver and it should work now from plplot 5.9.0 and above.

    Thanks,
    Werner

     
  • Werner Smekal
    Werner Smekal
    2008-02-20

    • assigned_to: nobody --> smekal
    • status: open --> closed