summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/window.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup of machine.h. Shuffled some fields around, and moved several Aaron Giles2011-03-281-2/+2
| | | | | | | | | | | | | to private member variables with accessors: machine->m_respool ==> machine->respool() machine->config ==> machine->config() machine->gamedrv ==> machine->system() machine->m_regionlist ==> machine->first_region() machine->sample_rate ==> machine->sample_rate() Also converted internal lists to use simple_list.
* Fix font loading in sdlmame. BDF files are just loaded as TTF by ↵ Couriersud2011-03-261-4/+4
| | | | | TTF_OpenFont. Load is now protected by a magic check. Also fixed a bug in SDL1.3 keyboard mapping and changed SDL1.3 code to be compatible with recent 1.3 API changes. [Couriersud]
* Converted core_options to a class. Removed a bunch of marginal Aaron Giles2011-03-031-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functionality in favor of alternate mechanisms. Errors are now reported via an astring rather than via callbacks. Every option must now specify a type (command, integer, float, string, boolean, etc). Command behavior has changed so that only one command is permitted. [Aaron Giles] Changed fileio system to accept just a raw searchpath instead of an options/option name combination. [Aaron Giles] Created emu_options class dervied from core_options which wraps core emulator options. Added mechanisms to cleanly change the system name and add/remove system-specific options, versus the old way using callbacks. Also added read accessors for all the options, to ensure consistency in how parameters are handled. Changed most core systems to access emu_options instead of core_options. Also changed machine->options() to return emu_options. [Aaron Giles] Created cli_options class derived from emu_options which adds the command-line specific options. Updated clifront code to leverage the new class and the new core behaviors. cli_execute() now accepts a cli_options object when called. [Aaron Giles] Updated both SDL and Windows to have their own options classes, derived from cli_options, which add the OSD-specific options on top of everything else. Added accessors for all the options so that queries are strongly typed and simplified. [Aaron Giles] Out of whatsnew: I've surely screwed up some stuff, though I have smoke tested a bunch of things. Let me know if you hit anything odd. Also I know this change will impact the WINUI stuff, please let me know if there are issues. All the functionality necessary should still be present. If it's not obvious, please talk to me before adding stuff to the core_options class.
* mame_file is now emu_file and is a class. It is required Aaron Giles2011-02-121-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | to pass a core_options object to the constructor, along with a search path. This required pushing either a running_machine or a core_options through some code that wasn't previously ready to handle it. emu_files can be reused over multiple open/close sessions, and a lot of core code cleaned up nicely as things were converted to them. Also created a file_enumerator class for iterating over files in a searchpath. This replaces the old mame_openpath functions. Changed machine->options() to return a reference. Removed public nvram_open() and fixed jchan/kaneko16 to stop directly saving NVRAM. Removed most of the mame_options() calls; this will soon go away entirely, so don't add any more. Added core_options to device_validity_check() so they can be used to validate things.
* Added "-syncrefresh" option to osd/sdl. This will *limit* the game speed to ↵ Couriersud2011-01-221-2/+7
| | | | the video refresh rate and works in -mt mode as well. The option has an effect only if "-waitsync" is specified. [Couriersud, Chris Kennedy]
* Split the screen device into a separate module. Aaron Giles2010-12-021-1/+1
| | | | | Converted global video routines into a video_manager. Moved video manager initialization earlier in startup.
* Slightly cleaner fix for SDL. Aaron Giles2010-10-131-3/+3
|
* Fix for SDL compile (no whatsnew) Miodrag Milanovic2010-10-131-2/+2
|
* Converted render.c objects into C++ objects. Updated all callers. Aaron Giles2010-10-131-21/+15
|
* Split mame.c into mame.c and machine.c, the latter containing the Aaron Giles2010-06-301-8/+8
| | | | | | | | | | | | | | | | | | | running_machine definition and implementation. Moved global machine-level operations and accessors into methods on the running_machine class. For the most part, this doesn't affect drivers except for a few occasional bits: mame_get_phase() == machine->phase() add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...) add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...) mame_get_base_datetime() == machine->base_datetime() mame_get_current_datetime() == machine->current_datetime() Cleaned up the region_info class, removing most global region accessors except for memory_region() and memory_region_length(). Again, this doesn't generally affect drivers.
* SDLMAME now compiles against SDL 1.3 up to HG rev 4464. Everything beyond ↵ Couriersud2010-06-031-4/+4
| | | | that revision is completely broken since Sam ripped out multi-keyboard and multi-mice support. Further information in README_SDL13.txt [Couriersud]
* SDL: remove problematic live render type toggle and default OS X to OpenGL R. Belmont2010-06-021-41/+0
|
* several cleanups based on cppcheck and VS2008 Code Analysis [Oliver Stöneberg] Fabio Priuli2010-03-171-0/+3
| | | | | | | | | | | | | split.c: made the "split" return the actual result instead of just 0. [Oliver Stöneberg] clifront.c: made the identation of the CPU device in -listdevices the same like the others [Oliver Stöneberg] i386.c: gave some fatalerror() calls in the i386 proper messages [Oliver Stöneberg] ssem.c: fixed compilation of SSEM core with SSEM_DISASM_ON_UNIMPL [Oliver Stöneberg] srcclean.c: small wording change in the srcclean summary [Oliver Stöneberg] sdl/window.c: fixed a potential memory leak in sdlwindow_video_window_create() [Oliver Stöneberg]
* - Moved natural keyboard support from MESS to MAME Miodrag Milanovic2010-02-121-4/+0
| | | | - Moved OSD file functions and clipboard access functions into OSD core
* Added DEBUG_FLAG_OSD_ENABLED to allow coexistence of debuggers going forward. Couriersud2010-02-051-3/+3
| | | | | | Replaced all occurrences of OPTION_DEBUG in src/osd/* by checking machine->debug_flags Replaced all occurrences of DEBUG_FLAG_ENABLED in src/osd/* by DEBUG_FLAG_OSD_ENABLED For the time being, DEBUG_FLAG_OSD_ENABLED is default (set in mame.c) Debugger: avoid clearing DEBUG_FLAG_OSD_ENABLED
* The return of the "misc" Couriersud2010-01-211-1/+1
| | | | | | | | | | - Added sdlmisc_<targetos>.c again. This was necessary since certain tools create stubs for e.g. osd_break_into_debugger. If we do not have this in a separate file, the link stage may break. - Applied OS/2 patch [Credit: KO Myung-Hun] - Cleaned up #includes. Removed stdlib.h were possible. - More malloc to osd_malloc rename. - SDL monitor modes are read now when they are needed. This is now consistent across platforms.
* Minor cosmetic changes: Couriersud2010-01-161-4/+0
| | | | - order of includes - remove duplicate code
* Cleanups and version bump. Aaron Giles2010-01-161-52/+52
|
* SDLMAME initial import [R. Belmont, Couriersud] R. Belmont2010-01-131-0/+1399