Giter Club home page Giter Club logo

Comments (14)

midwan avatar midwan commented on May 21, 2024 1

Interesting idea, but we'll have to think about it a bit.

The GUI has a minimum resolution of 600x200 currently, to fit everything there. To support a smaller resolution than that, things will have to get really crammed in half the space.

Ideally it should be adaptive, depending on the resolution you're running it on. Higher resolutions should also be taken advantage when it makes sense (nobody likes scrolling much).

We'll look into this after #8 is completed.

from amiberry.

Fourdee avatar Fourdee commented on May 21, 2024 1

@midwan

But what should be the minimum resolution supported then? We should test this in such a scenario and see which approach works best.

As per @HoraceAndTheSpider

320x240

I'd recommend the same. Its the lowest resolution panel for SBC's i've found (http://www.waveshare.com/3.2inch-rpi-lcd-b.htm). Beyond that, your looking at 16x2 matrix (http://www.raspberrypi-spy.co.uk/2012/07/16x2-lcd-module-control-using-python/).

Although the RPi can scale its framebuffer output to 16x16 resolution (possibly 1x1, not tried), cant see users needing less than 320x240.

from amiberry.

midwan avatar midwan commented on May 21, 2024 1

SDL2 will automatically scale the display to the resolution given, and this works for upscaling as well as downscaling.

The results will be ugly of course, if we downscale a 800x480 image to 320x240, but it should still be viewable.

from amiberry.

HoraceAndTheSpider avatar HoraceAndTheSpider commented on May 21, 2024 1

No, the PiGrrl has been a pain but I have a new Freeplay CM3 arriving soon.... should be the same size of display :)

from amiberry.

HoraceAndTheSpider avatar HoraceAndTheSpider commented on May 21, 2024 1

My new CM3 unit is currently sitting in customs.... :(

from amiberry.

ariath avatar ariath commented on May 21, 2024

Due to the small size of these screens, maybe the solution is making an alternative GUI system, more simple, without widgets.

Maybe something similar to MIST FPGA's config menu?
http://somuch.guru/wp-content/uploads/2015/09/minimig_iGame.jpg

Because you aren't using a graphical GUI, maybe it is even easier to implement.

See ya!

from amiberry.

HoraceAndTheSpider avatar HoraceAndTheSpider commented on May 21, 2024

Yes , that's the sort of thing.

Even just a basic text on the default OS screen (like raspi-config screen or whatever)

Keeping in mind that it doesn't need to have 100% of the available options.

from amiberry.

midwan avatar midwan commented on May 21, 2024

Or we could just check the resolution and adapt the GUI to that automatically. Using scroll bars where needed for example.

But what should be the minimum resolution supported then? We should test this in such a scenario and see which approach works best.

from amiberry.

midwan avatar midwan commented on May 21, 2024

OK, thanks for the input from all of you. I'll look into this and keep you posted.

from amiberry.

midwan avatar midwan commented on May 21, 2024

Note to self: Test this approach in the SDL2 branch

from amiberry.

midwan avatar midwan commented on May 21, 2024

Does anyone have a display with a resolution of 320x240 to test with?

The current SDL2 version already does auto-scale to fit the native resolution, so I was wondering how it looks like that. If it's not too awful, maybe we don't need to redesign the whole GUI and we can close this issue.

from amiberry.

HoraceAndTheSpider avatar HoraceAndTheSpider commented on May 21, 2024

I do, but I need to fix up my PiGrrl again.... will look into that for you!

from amiberry.

midwan avatar midwan commented on May 21, 2024

@HoraceAndTheSpider
Any luck with this? :)

from amiberry.

midwan avatar midwan commented on May 21, 2024

Tested with SDL2, works on any display size you have. You can even have the window as resizable if running on the desktop (coming in a new version) and scale it up/down any way you want.

from amiberry.

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.