usim

Check-in [5de619b0f2]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:sdl2.c: Fix color.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ams/sdl1
Files: files | file ages | folders
SHA3-256: 5de619b0f2c80c620d377a4dd0d0d7a6a6f58efd361989435ce34f8d82202413
User & Date: ams 2024-06-04 17:47:31
Context
2024-06-04
17:59
sdl2.c: Boiler plate for keyboard code. check-in: 7399fa5f2a user: ams tags: ams/sdl1
17:47
sdl2.c: Fix color. check-in: 5de619b0f2 user: ams tags: ams/sdl1
17:44
Add rudimentary SDL2 support. check-in: fd1498981c user: ams tags: ams/sdl1
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to sdl2.c.

107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
}

void
sdl2_init(void)
{
	NOTICE(TRACE_USIM, "tv: using SDL backend for monitor and keyboard\n"); 

	Foreground = 0xff; // White
	Background = 0x0011; // Black

//screen = SDL_CreateWindow("CADR",
//                          SDL_WINDOWPOS_UNDEFINED,
//                          SDL_WINDOWPOS_UNDEFINED,
//                          tv_width, tv_height,
//                          SDL_WINDOW_OPENGL);








|
|







107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
}

void
sdl2_init(void)
{
	NOTICE(TRACE_USIM, "tv: using SDL backend for monitor and keyboard\n"); 

	Foreground = 0xffffff; // White
	Background = 0x000000; // Black

//screen = SDL_CreateWindow("CADR",
//                          SDL_WINDOWPOS_UNDEFINED,
//                          SDL_WINDOWPOS_UNDEFINED,
//                          tv_width, tv_height,
//                          SDL_WINDOW_OPENGL);