Git Product home page Git Product logo

Comments (3)

binary1248 avatar binary1248 commented on May 30, 2024

What do you mean by "support for such displays"? SFGUI can already run on high resolution displays as you saw. Upscaling the size of the GUI or the render surface itself from a lower resolution isn't part of the GUI and should either be taken care of by the user (i.e. adjusting the sizes passed to SFGUI) or through SFML by stretching the RenderTarget to fill a larger area.

The fact that the examples don't take into account the resolution of the user's display doesn't mean that it can't be done in general. The examples would run just as poorly if you use a display with a really low resolution.

from sfgui.

n0phx avatar n0phx commented on May 30, 2024

Ok, thanks, I'll take a look at it in more detail, I was just reviewing the possible UI toolkits for a tool, and as I saw the examples in that state I thought asking is quicker than looking at the API immediately.

from sfgui.

AlbertMpx avatar AlbertMpx commented on May 30, 2024

I got the same issue as integricho : widgets appears very smalls. (SFGUI-0.3.2, SFML-2.4.2 on Win10)

Solved by adding :
SetProcessDpiAwareness(PROCESS_DPI_UNAWARE);
at the start of main.

( The pb seems to be in the use of SetProcessDpiAwareness in SFML, I get the same behaviour if I create a Win32 window before SFML RenderWindow)

from sfgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.