Setting Window Size

I had noticed that the Window Width and Height are ignored when set using engineParamters_[ ]. The window is initialized maximized. using SetMode works fine after the Graphics subsystem is initialized.

Am I doing something wrong?

Windows 10, VS2017, Urho3d 1.7.1

Hey, fredlangva! Welcome to the community!

This is taken from “class MyApp : public Urho3D::Application” …

    virtual void Setup()
    {
        // Called before engine initialization. engineParameters_ member variable can be modified here
        engineParameters_["FullScreen"]=true;
        //engineParameters_["FullScreen"]=false;
        //engineParameters_["WindowWidth"]=1280;
        //engineParameters_["WindowHeight"]=720;
        //engineParameters_["WindowResizable"]=true;
        //engine_->DumpResources();

    }
1 Like

Thanks,

That’s correct. It doesn’t work on my system. I need to explicitly set the size after initialization. Window title and fullscreen work OK.