Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen mode cleanup and extended API #730

Merged
merged 10 commits into from
Jan 6, 2022

Commits on Nov 14, 2021

  1. Configuration menu
    Copy the full SHA
    1d4e9c8 View commit details
    Browse the repository at this point in the history
  2. pico: Add a set_screen_palette stub

    Not crashing is good
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    eade9af View commit details
    Browse the repository at this point in the history
  3. Avoid using a full Surface for each screen mode

    Adds a struct containing only the data/size/format, which is all that was used from those Surfaces. Reduces the size per mode from 84 to 20 bytes and gets them out of RAM
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    7075748 View commit details
    Browse the repository at this point in the history
  4. Don't bother recreating SDL textures on resize

    They're based on sys_width/height, which doesn't change on resize
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    f7a3b0f View commit details
    Browse the repository at this point in the history
  5. More generic SDL update_texture

    Merge the two simple cases, handle lores palette (not a thing yet)
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    b1bf1c0 View commit details
    Browse the repository at this point in the history
  6. Add a new set_screen_mode that takes a format

    Uses a new API that takes a template struct and fills it. Also adds lores palette support.
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    0e4ce3f View commit details
    Browse the repository at this point in the history
  7. Clean up some naming in stm32 display code

    Camel... snakes?
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    c07781c View commit details
    Browse the repository at this point in the history
  8. Add RGB565 support to SDL

    Loosely based on the PR
    
    Co-Authored-By: Alistair Buxton <[email protected]>
    Daft-Freak and ali1234 committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    6b4881c View commit details
    Browse the repository at this point in the history
  9. Add RGB565 support to STM32

    Basically just changing the source format to the DMA2D copies
    Daft-Freak committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    d5986dc View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. Call the "engine" set_screen_mode in SDL init

    Unbreaks everything that uses the default mode
    Daft-Freak committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    d21aa9d View commit details
    Browse the repository at this point in the history