source/Platform/Unix/X11Display.cpp: Improve logging.
This commit is contained in:
parent
57d4e44bbe
commit
624871486f
1 changed files with 3 additions and 1 deletions
|
|
@ -111,6 +111,8 @@ void* X11Display::getHandle() const
|
||||||
|
|
||||||
void X11Display::setSize(unsigned int width, unsigned int height)
|
void X11Display::setSize(unsigned int width, unsigned int height)
|
||||||
{
|
{
|
||||||
|
Log::info("X11: Set size %dx%d", width, height);
|
||||||
|
|
||||||
// X11 does not like if width or height is zero.
|
// X11 does not like if width or height is zero.
|
||||||
if (width == 0) {
|
if (width == 0) {
|
||||||
width = 1;
|
width = 1;
|
||||||
|
|
@ -317,7 +319,7 @@ void X11Display::processEvent(const ::XEvent& event)
|
||||||
|
|
||||||
if (m_size != size) {
|
if (m_size != size) {
|
||||||
m_size = size;
|
m_size = size;
|
||||||
Log::info("X11: Resize event");
|
Log::info("X11: Resize event %dx%d", m_size.x, m_size.y);
|
||||||
onReshape(size.x, size.y);
|
onReshape(size.x, size.y);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue