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:
committed by
Vadim Zeitlin
parent
2567f4222d
commit
00526cefb6
@@ -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);
|
||||
|
Reference in New Issue
Block a user