16
Window / No title bar on RenderWindow
« on: October 08, 2009, 09:08:12 am »
Hi! I'm new to c++ and sfml. I'm creating a small window but the titlebar won't show. I tried
in Ubuntu Hardy but the titlebar won't show. How can I fix this problem? Thanks!
Code: [Select]
int main() {
WindowSettings settings;
settings.DepthBits = 32;
settings.StencilBits = 8;
settings.AntialiasingLevel = 2;
VideoMode mode(100, 150, 32);
RenderWindow window(mode, "SFML Window", Style::Titlebar, settings);
while (window.IsOpened()) {
window.Clear();
//handle events here
window.Display();
}
}
in Ubuntu Hardy but the titlebar won't show. How can I fix this problem? Thanks!