comparison render_sdl.c @ 874:b6842dfb8edf

ROM is now run after being selected in menu. Initial path for menu is read from config file.
author Michael Pavone <pavone@retrodev.com>
date Sun, 08 Nov 2015 18:38:33 -0800
parents 7ed55a361e79
children 252dfd29831d
comparison
equal deleted inserted replaced
873:91bf4d905eba 874:b6842dfb8edf
369 if (joy) { 369 if (joy) {
370 printf("\tNum Axes: %d\n\tNum Buttons: %d\n\tNum Hats: %d\n", SDL_JoystickNumAxes(joy), SDL_JoystickNumButtons(joy), SDL_JoystickNumHats(joy)); 370 printf("\tNum Axes: %d\n\tNum Buttons: %d\n\tNum Hats: %d\n", SDL_JoystickNumAxes(joy), SDL_JoystickNumButtons(joy), SDL_JoystickNumHats(joy));
371 } 371 }
372 } 372 }
373 SDL_JoystickEventState(SDL_ENABLE); 373 SDL_JoystickEventState(SDL_ENABLE);
374 374
375 atexit(render_quit); 375 atexit(render_quit);
376 }
377
378 void render_update_caption(char *title)
379 {
380 caption = title;
376 } 381 }
377 382
378 void render_context(vdp_context * context) 383 void render_context(vdp_context * context)
379 { 384 {
380 int width = context->regs[REG_MODE_4] & BIT_H40 ? 320.0f : 256.0f; 385 int width = context->regs[REG_MODE_4] & BIT_H40 ? 320.0f : 256.0f;