1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-09 20:18:28 +00:00

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.
This commit is contained in:
Peter
2021-10-19 14:11:45 +02:00
parent 75c668f1cd
commit f58abe36ee
8 changed files with 422 additions and 8 deletions

View File

@@ -35,7 +35,9 @@
#include <X11/Xutil.h>
#define LDEX "ldex"
#endif /* XWINDOW */
#ifdef SDL
#define LDESDL "ldesdl"
#endif
#define LDEMONO "ldesingle"
#define LDECOLOR "ldemulti"
#define LDETRUECOLOR "ldetruecolor"
@@ -187,7 +189,7 @@ int main(int argc, char *argv[])
fork_Unix();
/* start ldemono or ldecolor */
strcpy(filetorun,LDESDL);
if (filetorun[0] == '\0') {
fprintf(stderr, "Unable to determine what display program to run.\n");
exit(1);