Return full virtual screen size from wxScreenDC::GetSize() in wxMSW

Return the size of the entire virtual screen, possibly composed from multiple
monitors, rather than just the size of the primary monitor.

This makes this method consistent with wxScreenDC actually representing the
entire virtual screen and not just the primary monitor and also with wxGTK.

Closes #13279.
This commit is contained in:
Iwbnwif Yiw
2016-03-28 21:37:55 +02:00
committed by Vadim Zeitlin
parent 2567f4222d
commit 00526cefb6
3 changed files with 13 additions and 6 deletions

View File

@@ -17,13 +17,11 @@
class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxMSWDCImpl
{
public:
// Create a DC representing the whole screen
// Create a DC representing the whole virtual screen (all monitors)
wxScreenDCImpl( wxScreenDC *owner );
virtual void DoGetSize(int *w, int *h) const
{
GetDeviceSize(w, h);
}
// Return the size of the whole virtual screen (all monitors)
virtual void DoGetSize(int *w, int *h) const;
wxDECLARE_CLASS(wxScreenDCImpl);
wxDECLARE_NO_COPY_CLASS(wxScreenDCImpl);