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

[WIP] Add prototypical SDL support. #403

Draft
wants to merge 36 commits into
base: master
Choose a base branch
from
Draft

Commits on Oct 20, 2021

  1. Add prototypical SDL support.

    Build with cmake. This will create a new backend (ldesdl).
    - Resolution can only be set by editing the variables in sdl.c.
    - Key repeat does not work.
    - Still problems with keysyms that implicitly contain modifiers.
    - The entire screen is bitblted onto the SDL display every frame.
    
    Support keyboard, and work on mouse.
    
    Kind of working...
    
    Fix display resolution problems.
    ecraven committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    f58abe3 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2021

  1. Configuration menu
    Copy the full SHA
    f73b4d1 View commit details
    Browse the repository at this point in the history
  2. Change SDL backend to accelerated renderer, support pixel scaling.

    Edit main.c, init_SDL(1600, 1024, 1) means lisp display size 1600x1024, pixel scaling 1.
    
    Try init_SDL(800, 512, 2) or even init_SDL(608, 1023, 3).
    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    78e42b7 View commit details
    Browse the repository at this point in the history
  3. Only bitblt on damage.

    Also add an alternative for key handling, which does not work any better...
    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    87ede7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    333c132 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7b7db9a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    28931ac View commit details
    Browse the repository at this point in the history
  7. Add more #ifdef XWINDOW

    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    4821dac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f198204 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2092a74 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8f70679 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5c22546 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0d47030 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f8fea0b View commit details
    Browse the repository at this point in the history
  14. Add support for -t / -title.

    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    ab94538 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    4ee904f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ccfacb2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    56d5639 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    f769dba View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e346db4 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    e9968a2 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    572b94d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    bab54bc View commit details
    Browse the repository at this point in the history
  23. Fix Caso.

    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    9bb7fab View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    bab9213 View commit details
    Browse the repository at this point in the history
  25. Maybe fix cmake for SDL2.

    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    00c4d65 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    784d9f6 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    5413934 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    8a872d7 View commit details
    Browse the repository at this point in the history
  29. Add mouse wheel diagnostics.

    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    a3fdf18 View commit details
    Browse the repository at this point in the history
  30. Add support for inverting video and setting mouse position.

    Use (IL:VIDEOCOLOR T/NIL) to change inversion.
    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    ecfd404 View commit details
    Browse the repository at this point in the history
  31. Add support for setting the mouse cursor. Not finished!

    Currently this just allocates a new X cursor each time, should be
    amended to cache the cursor, just like X does at the moment.
    ecraven committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    37aed57 View commit details
    Browse the repository at this point in the history
  32. Fix "error: implicit declaration of function" from dspsubrs

    Creates an sdldefs.h, declares a few more functions in sdl.c static,
    and includes sdldefs.h in dspsubrs.c when necessary.
    nbriggs committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    ba6e365 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Merge pull request Interlisp#408 from Interlisp/sdl-fix-implicit-decls

    Add proper header for SDL-specific functions with prototypes.
    ecraven committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    c64f853 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f9d1e51 View commit details
    Browse the repository at this point in the history
  3. Cache cursors for SDL.

    ecraven committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    241e5fe View commit details
    Browse the repository at this point in the history