[Bug 46257] PrintWindow returns black image

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 5 05:21:39 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=46257

--- Comment #5 from Stuart Axon <stu.axon at gmail.com> ---
Hi,
   Here is some CPP code that grabs a screenshot of a window.
It's not the same as the python code, but grabbing screenshots does fail under
Wine.

Thought I had an MFC version (a port of the python code) working before, Xmas
.. but definitely isn't working now, so I've commented that out (and probably
broken more things).

https://gist.github.com/stuaxo/cba5921832201c93a0de1da28aeffcff

Code is a bit of a mishmash of C/C++ idioms as it's code-by-googling


You can run notepad then capture it like

capture-window -l Notepad

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list