SFML community forums
Help => Window => Topic started by: Francisco Benavides on September 09, 2014, 07:59:26 pm
-
The documentation for this issue is a little bit outdated, for WxWidgets 2.x and SFML 1.6
Following the same procedure, I got to make it work, but there seems to be a bug in Windows.cpp
The function is:
Vector2u Window::getSize() const
{
return m_size;
}
It should be:
Vector2u Window::getSize() const
{
return m_impl ? m_impl->getSize() : m_size;
}
Did someone else have the same problem ? When I placed a Sprite inside the WxControl, it was not scaled properly. After the change I suggest, everything seems to be ok.
Greetings
-
Sfml 1.6 is like 4 years old don't expect a fix now :D
-
It works for 1.6, but doing it the same way is broken for 2.0 (according to OP).
-
The change I showed seems to work
It is not so difficult to solve then
-
What is the proper way to integrate these two libraries then ?