Scalable Window Resolution

  • nucular
    11th Oct 2013 Member 3 Permalink
    I decided to post this suggestion here because some people seem to mix up Window and Save resolution.



    My suggestion is, to have a draggable/resizable window. This doesn't mean to have different sized saves, but to have a nicer and easier-to-use interface, because only people with pretty low display resolution can use the default window size and some people with display heights under 900px cannot use the double-size mode.



    It would work like if you would play a video on your favourite media player application. If you drag the window too wide, it adds black borders on the sides. The same thing happens with the height.



    To be specifically, TPT would blit the graphics onto an additional plane and then proportional scale this plane up to the window resolution. Then, it would center this plane at the display plane.



    I'm not sure if this would cause much lag, but I don't think so because the scaling algorithm wouldn't have to sample the results, which would also fit into TPTs "pixelated" look.



    EDIT: Forgot the <br>s.
    Edited once by nucular. Last: 11th Oct 2013
  • asdf123
    12th Oct 2013 Member 0 Permalink

    for anyone who thinks coding this is too hard, mebbe u can just do a zoom on the diagonal

  • nucular
    19th Oct 2013 Member 0 Permalink
    so... no other comments?
  • mniip
    19th Oct 2013 Developer 1 Permalink
    @asdf123 (View Post)
    that's like saying "implement movable solids, make them red; although if that's too hard to code, you don't have to make them red"

    @nucular (View Post)
    i think simon showed us a test of scale:1.5 once, it looked cool, but i don't recall fps of that thing, and i don't know if it was SDL
  • nucular
    19th Oct 2013 Member 0 Permalink
    I just realized that SDL doesn't come with a good scaling tool, although maybe the approach PyGame uses could be useful (just sayin', it's quite performing, using inline assembly though)

    https://bitbucket.org/pygame/pygame/src/419b0740d3df00597b77b916feb6b0b7365882c3/src/scale_mmx32.c

    Or repair the OpenGL mode :^P