Fix painting logic in wxQt wxClientDC implementation
The original drawing mechanism was generating lots of QWarning messages when running samples (e.g. htlbox, caret, etc.) and in some cases was not actually completely drawing every element of the sample. The issue was that the QPicture was being shared incorrectly between wxWindow and wxClientDC and attempts to start painting, update, etc. were generating console warnings. Closes https://github.com/wxWidgets/wxWidgets/pull/1152
This commit is contained in:
@@ -145,7 +145,8 @@ public:
|
||||
|
||||
// wxQt implementation internals:
|
||||
|
||||
virtual QPicture *QtGetPicture() const;
|
||||
// Caller maintains ownership of pict - window will NOT delete it
|
||||
void QtSetPicture( QPicture* pict );
|
||||
|
||||
QPainter *QtGetPainter();
|
||||
|
||||
|
Reference in New Issue
Block a user