Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DEF

Pages: [1]
1
Hi,
sf::Style::Fullscreen creates a borderless Fullscreen.

But how to get a proper exclusive Fullscreen under Windows / Linux?

My Code of Block for apply Vide looks like this ( i marked the corresponding line)

void UI::applyVideo() {
   if (gui.get<tgui::CheckBox>("Fullscreen", 1)->isChecked()) {
      if (options->currentmode == -1 || options->currentmode != gui.get<tgui::Slider>("VMSlider", 1)->getValue()) {
         options->currentmode = gui.get<tgui::Slider>("VMSlider", 1)->getValue();
         window->close();
         window->create(options->modes[options->currentmode], "SpeedBlocks", sf::Style::Fullscreen);
         window->setView(sf::View(sf::FloatRect(0, 0, 960, 600)));
         options->fullscreen=true;
      }
   }

Pages: [1]