projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed music playback in dos
[dosdemo]
/
src
/
sdl
/
main.c
diff --git
a/src/sdl/main.c
b/src/sdl/main.c
index
b3ff905
..
e5eda65
100644
(file)
--- a/
src/sdl/main.c
+++ b/
src/sdl/main.c
@@
-32,6
+32,7
@@
int main(int argc, char **argv)
fprintf(stderr, "failed to allocate virtual framebuffer\n");
return 1;
}
fprintf(stderr, "failed to allocate virtual framebuffer\n");
return 1;
}
+ vmem_front = vmem_back = fb_pixels;
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER);
if(!(fbsurf = SDL_SetVideoMode(xsz, ysz, fb_bpp, sdl_flags))) {
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_TIMER);
if(!(fbsurf = SDL_SetVideoMode(xsz, ysz, fb_bpp, sdl_flags))) {
@@
-98,6
+99,11
@@
void demo_quit(void)
quit = 1;
}
quit = 1;
}
+void swap_buffers(void *pixels)
+{
+ /* do nothing, all pointers point to the same buffer */
+}
+
static void handle_event(SDL_Event *ev)
{
switch(ev->type) {
static void handle_event(SDL_Event *ev)
{
switch(ev->type) {