Bugs item #1737273, was opened at 2007-06-14 15:24
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=1737273&group_id=2915

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Chris Mumby (chrismumby)
Assigned to: Nobody/Anonymous (nobody)
Summary: Blank window when using wxWidgets driver in Windows

Initial Comment:
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;


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=1737273&group_id=2915

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to