[ wxwindows-Bugs-1691813 ] wxScreenDC doesn`t work
SourceForge.net
noreply at sourceforge.net
Fri May 11 09:15:22 PDT 2007
Bugs item #1691813, was opened at 2007-03-31 02:09
Message generated for change (Comment added) made by smartgo
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1691813&group_id=9863
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: wxMac specific
Group: Platform specific
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: LesterZX (lesterzx)
Assigned to: Stefan Csomor (csomor)
Summary: wxScreenDC doesn`t work
Initial Comment:
not work at all, in wxSplitterWindow and wxAui also( sash and aui highlight ), but the same code perfectly work on win32.
after .Blit from wxScreenDC i have assert:
/Paradigma/Developer_2/sources_Third_Party/wxWidgets/src/common/dcgraph.cpp(760): assert "wxAssertFailure" failed in DoBlit(): Cannot Blit. Unable to get contents of DC as bitmap.
I use Intel-Mac 10.4.4 and wxWidgets 2.8.0, P4 3.0HT, ATI Radeon x550, 512M,
for wxWidgets 2.8.2 it doesn`t work also
I have attach screenshot of xcode debugger window on assert
----------------------------------------------------------------------
Comment By: Anders Kierulf (smartgo)
Date: 2007-05-11 10:15
Message:
Logged In: YES
user_id=1791004
Originator: NO
Drawing TO wxScreenDC on Mac doesn't seem to work at all in wxWidgets
2.8.3. The following code works well on Windows but doesn't show anything
on Mac:
wxScreenDC dc;
dc.StartDrawingOnTop(this);
wxBrush brush(*wxBLACK, wxCROSS_HATCH);
dc.SetLogicalFunction(wxINVERT);
dc.SetBrush(brush);
dc.DrawRectangle(bounds.x, bounds.y, bounds.width, bounds.height);
dc.EndDrawingOnTop();
Any ideas how to fix this?
Thanks,
Anders
----------------------------------------------------------------------
Comment By: zxfox (zxfox)
Date: 2007-04-02 00:06
Message:
Logged In: YES
user_id=1720693
Originator: NO
ok, thanks for a fast reply
----------------------------------------------------------------------
Comment By: Stefan Csomor (csomor)
Date: 2007-04-01 23:52
Message:
Logged In: YES
user_id=81467
Originator: NO
blitting FROM the screen is not supported when building using Quartz
anymore right now (workaround would be to set this to 0, not using graphics
either), I thought I had adapted wxSplitterWindow to use the wxOverlay
class which is the substitute for these situations, I'll have a look at it
as soon as I get the time to do so
Thanks,
Stefan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1691813&group_id=9863
More information about the wx-dev
mailing list