Replace wxGTKCairoDCImpl::m_{width,height} with m_size

This allows to avoid initializing the variables to 0 in all the
overloaded ctors: wxSize default ctor already does it.

It's also more convenient to use GetScaledSize() rather than assigning
m_width and m_height separately, even if the rest of the code is broadly
unchanged.
This commit is contained in:
Vadim Zeitlin
2018-01-25 14:52:29 +01:00
parent 4c8e701d84
commit ee0dd4edb1
2 changed files with 17 additions and 25 deletions

View File

@@ -34,10 +34,10 @@ public:
virtual wxSize GetPPI() const wxOVERRIDE;
protected:
// Set m_width and m_height from the given (valid) GdkWindow.
// Set m_size from the given (valid) GdkWindow.
void InitSize(GdkWindow* window);
int m_width, m_height;
wxSize m_size;
wxDECLARE_NO_COPY_CLASS(wxGTKCairoDCImpl);
};