summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl
Commit message (Collapse)AuthorAgeFilesLines
...
* SDL: Fix OS X and Windows builds (no whatsnew) R. Belmont2010-11-132-4/+72
|
* SDL: -uifont now can also look up system font families like Windows [R. Belmont] R. Belmont2010-11-132-8/+116
|
* SDL: Support -uifont for using arbitrary TrueType fonts on Linux/BSD builds. R. Belmont2010-11-123-0/+140
| | | | | | | | | | | | This takes full pathname/filename to the font, and the name can have styles appended as in Windows: [b] for bold, [i] for italic, [s] for strikethrough, and [u] for underlined. Fonts are rendered at a size of 120 points and scaled down by the core, which looks superb on high-res displays. (Liberation Sans that comes with most recent distros looks really good). Warning: Linux/BSD builds now require SDL_ttf 2.x. On Fedora the required package names are "SDL_ttf" and "SDL_ttf-devel".
* Cleanup & version bump.mame0140u1 Aaron Giles2010-11-081-3/+3
|
* Converted the expression engine to C++, did the usual cleanup. Aaron Giles2010-11-011-0/+1
|
* Fix OSX compile. Wilbert Pol2010-10-281-6/+7
|
* [SDL Debugger] Removed an unnecessary assert and brought focus back to Andrew Gardner2010-10-231-61/+64
| | | | | the main debugger window on startup. [Andrew Gardner]
* Fix Linux SDL build. Andrew Gardner2010-10-232-0/+3
|
* Create new class osd_interface to house OSD callbacks. Added new Aaron Giles2010-10-216-50/+112
| | | | | | | | | module osdepend.c with default empty implementations. Changed mame_execute() and cli_execute() to accept a reference to an osd_interface which is provided by the caller. Updated SDL and Windows OSD to create an osd_interface-derived class and moved their OSD callbacks to be members.
* Fix crash when specifying -effect. Aaron Giles2010-10-163-46/+0
| | | | | | Moved -effect implementation out of OSD code and into core since the implementations were identical across Windows/SDL and implemented in the core itself.
* OSX compile fix. Wilbert Pol2010-10-141-1/+1
|
* Cleanups and version bump. Aaron Giles2010-10-142-10/+10
|
* 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-137-64/+61
|
* Debugger (SDL) : Closing a memory window no longer segfaults. [Andrew Gardner] Andrew Gardner2010-09-241-3/+2
|
* Debugger (SDL) : Window locations in the SDL debugger are now saved and Andrew Gardner2010-09-241-5/+72
| | | | | loaded at exit and startup. [Andrew Gardner]
* **FOR REVIEW** Andrew Gardner2010-09-202-3/+77
| | | | | | | | | | | | | | | | | Log: Added preliminary support for saving debugger window locations. [Andrew Gardner] (Notes) * I only save the values for the SDL debugger for now. * There is no loading of these values yet, but if this patch is confirmed good, loading should be relatively straightforward to add. * There is a slight chance this might not compile on OSes other than linux. I will be available via e-mail for the next 10 hours and will assist with any compilation problems if they occur. * The patch seems like the "right way" to do things, but if I am doing anything suspect, please feel free to make suggestions and corrections.
* Cleanups and version bump.mame0139u3 Aaron Giles2010-09-191-2/+2
|
* SDL: fix Linux and Mac builds for recent makefile changes (no whatsnew) R. Belmont2010-09-161-14/+18
|
* Replace "const address_space" with "address_space" throughout the system. Aaron Giles2010-08-191-4/+4
| | | | | | | | | | | The purpose of making it const before was to discourage direct tampering, but private/protected does a better job of that now anyhow, and it is annoying now. s/const[ \t]+address_space\b/address_space/g; Is basically what I did.
* Change *IX man pages to link to MAMEdev.org legal page [wallyweek] R. Belmont2010-07-112-23/+4
|
* Add *IX man pages for MAME and utils [wallyweek] R. Belmont2010-07-087-0/+1300
|
* MAMEdev kant spel (Ubuntu/Canonical cares about this) [wallyweek] R. Belmont2010-07-081-1/+1
|
* Fix OS X debugger (verified on PPC and Intel) R. Belmont2010-07-072-14/+20
|
* Fix compiling of osx debugger. Wilbert Pol2010-07-061-3/+3
|
* Cleanup debugger interface some more. Aaron Giles2010-07-062-6/+6
|
* Fix SDL debugger. Aaron Giles2010-07-061-3/+3
|
* Moved debugging structure away from CPUs only and attached to all Aaron Giles2010-07-062-31/+31
| | | | | | | | | | | | | | | | devices. Debugger now creates one for each device. C++-ified most debugger operations to hang off the debugging class, and updated most callers. This still needs a little cleanup, but it fixes most issues introduced when the CPUs were moved to their own devices. Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly broken. Also removed cpu_is_executing, cpu_is_suspended, cpu_get_local_time, and cpu_abort_timeslice. Some minor name changes: state_value() -> state() state_set_value() -> set_state()
* Fixes to get OSX debugger working again. (no whatsnew) Wilbert Pol2010-06-302-177/+149
|
* Fix compiling on non-windows SDL targets. (no whatsnew) Wilbert Pol2010-06-301-1/+1
|
* Split mame.c into mame.c and machine.c, the latter containing the Aaron Giles2010-06-308-84/+92
| | | | | | | | | | | | | | | | | | | 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.
* Made the machine_config a proper object. Added detokenize method to Aaron Giles2010-06-281-1/+1
| | | | | | | | | | | | this object which can be called multiple times to append new devices after the initial machine configuration is set up. Updated member variables to match new naming convention. Changed the running_machine to take a constructed machine_config object in the constructor, instead of creating one itself, for consistency. Also added machine->total_colors() as a shortcut to machine->config->m_total_colors.
* C++-ified the debugger views. Not quite architecturally where I would Aaron Giles2010-06-253-152/+101
| | | | | | | | | | | like them, but it's a start. Split implementation of individual view types out to separate files. Updated all callers. Also: * fixed okim6295 memory view * changed emualloc to free resource pools from earliest to latest so that early objects can safely clean up stuff they allocated
* Cleanups and version bump. Aaron Giles2010-06-171-1/+1
|
* - moved opresolv and zippath into /lib/util from MESS [Miodrag Milanovic] Miodrag Milanovic2010-06-163-24/+0
| | | - removed ifdef MESS from osd part since calls are needed by zippath
* Remove stray bitmap_free's. Aaron Giles2010-06-081-2/+1
|
* SDL: Fix compiling with OSX debugger. Wilbert Pol2010-06-081-1/+2
|
* SDL: fix compiling with GTK+ debugger R. Belmont2010-06-081-6/+8
|
* Fix SDL compile error. Aaron Giles2010-06-081-2/+1
|
* WARNING: There are likely to be regressions in both functionality and Aaron Giles2010-06-083-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | performance as a result of this change. Do not panic; report issues to the list in the short term and I will look into them. There are probably also some details I forgot to mention. Please ask questions if anything is not clear. NOTE: This is a major internal change to the way devices are handled in MAME. There is a small impact on drivers, but the bulk of the changes are to the devices themselves. Full documentation on the new device handling is in progress at http://mamedev.org/devwiki/index.php/MAME_Device_Basics Defined two new casting helpers: [Aaron Giles] downcast<type>(value) should be used for safe and efficient downcasting from a base class to a derived class. It wraps static_cast<> by adding an assert that a matching dynamic_cast<> returns the same result in debug builds. crosscast<type>(value) should be used for safe casting from one type to another in multiple inheritance scenarios. It compiles to a dynamic_cast<> plus an assert on the result. Since it does not optimize down to static_cast<>, you should prefer downcast<> over crosscast<> when you can. Redefined running_device to be a proper C++ class (now called device_t). Same for device_config (still called device_config). All devices and device_configs must now be derived from these base classes. This means each device type now has a pair of its own unique classes that describe the device. Drivers are encouraged to use the specific device types instead of the generic running_device or device_t classes. Drivers that have a state class defined in their header file are encouraged to use initializers off the constructor to locate devices. [Aaron Giles] Removed the following fields from the device and device configuration classes as they never were necessary or provided any use: device class, device family, source file, version, credits. [Aaron Giles] Added templatized variant of machine->device() which performs a downcast as part of the device fetch. Thus machine->device<timer_device>("timer") will locate a device named "timer", downcast it to a timer_device, and assert if the downcast fails. [Aaron Giles] Removed most publically accessible members of running_device/device_t in favor of inline accessor functions. The only remaining public member is machine. Thus all references to device->type are now device->type(), etc. [Aaron Giles] Created a number of device interface classes which are designed to be mix- ins for the device classes, providing specific extended functionality and information. There are standard interface classes for sound, execution, state, nvram, memory, and disassembly. Devices can opt into 0 or more of these classes. [Aaron Giles] Converted the classic CPU device to a standard device that uses the execution, state, memory, and disassembly interfaces. Used this new class (cpu_device) to implement the existing CPU device interface. In the future it will be possible to convert each CPU core to its own device type, but for now they are still all CPU devices with a cpu_type() that specifies exactly which kind of CPU. [Aaron Giles] Created a new header devlegcy.h which wraps the old device interface using some special template classes. To use these with an existing device, simply remove from the device header the DEVICE_GET_INFO() declaration and the #define mapping the ALL_CAPS name to the DEVICE_GET_INFO. In their place #include "devlegcy.h" and use the DECLARE_LEGACY_DEVICE() macro. In addition, there is a DECLARE_LEGACY_SOUND_DEVICE() macro for wrapping existing sound devices into new-style devices, and a DECLARE_LEGACY_NVRAM_DEVICE() for wrapping NVRAM devices. Also moved the token and inline_config members to the legacy device class, as these are not used in modern devices. [Aaron Giles] Converted the standard base devices (VIDEO_SCREEN, SPEAKER, and TIMER) from legacy devices to the new C++ style. Also renamed VIDEO_SCREEN to simply SCREEN. The various global functions that were previously used to access information or modify the state of these devices are now replaced by methods on the device classes. Specifically: video_screen_configure() == screen->configure() video_screen_set_visarea() == screen->set_visible_area() video_screen_update_partial() == screen->update_partial() video_screen_update_now() == screen->update_now() video_screen_get_vpos() == screen->vpos() video_screen_get_hpos() == screen->hpos() video_screen_get_vblank() == screen->vblank() video_screen_get_hblank() == screen->hblank() video_screen_get_width() == screen->width() video_screen_get_height() == screen->height() video_screen_get_visible_area() == screen->visible_area() video_screen_get_time_until_pos() == screen->time_until_pos() video_screen_get_time_until_vblank_start() == screen->time_until_vblank_start() video_screen_get_time_until_vblank_end() == screen->time_until_vblank_end() video_screen_get_time_until_update() == screen->time_until_update() video_screen_get_scan_period() == screen->scan_period() video_screen_get_frame_period() == screen->frame_period() video_screen_get_frame_number() == screen->frame_number() timer_device_adjust_oneshot() == timer->adjust() timer_device_adjust_periodic() == timer->adjust() timer_device_reset() == timer->reset() timer_device_enable() == timer->enable() timer_device_enabled() == timer->enabled() timer_device_get_param() == timer->param() timer_device_set_param() == timer->set_param() timer_device_get_ptr() == timer->get_ptr() timer_device_set_ptr() == timer->set_ptr() timer_device_timeelapsed() == timer->time_elapsed() timer_device_timeleft() == timer->time_left() timer_device_starttime() == timer->start_time() timer_device_firetime() == timer->fire_time() Updated all drivers that use the above functions to fetch the specific device type (timer_device or screen_device) and call the appropriate method. [Aaron Giles] Changed machine->primary_screen and the 'screen' parameter to VIDEO_UPDATE to specifically pass in a screen_device object. [Aaron Giles] Defined a new custom interface for the Z80 daisy chain. This interface behaves like the standard interfaces, and can be added to any device that implements the Z80 daisy chain behavior. Converted all existing Z80 daisy chain devices to new-style devices that inherit this interface. [Aaron Giles] Changed the way CPU state tables are built up. Previously, these were data structures defined by a CPU core which described all the registers and how to output them. This functionality is now part of the state interface and is implemented via the device_state_entry class. Updated all CPU cores which were using the old data structure to use the new form. The syntax is currently awkward, but will be cleaner for CPUs that are native new devices. [Aaron Giles] Converted the okim6295 and eeprom devices to the new model. These were necessary because they both require multiple interfaces to operate and it didn't make sense to create legacy device templates for these single cases. (okim6295 needs the sound interface and the memory interface, while eeprom requires both the nvram and memory interfaces). [Aaron Giles] Changed parameters in a few callback functions from pointers to references in situations where they are guaranteed to never be NULL. [Aaron Giles] Removed MDRV_CPU_FLAGS() which was only used for disabling a CPU. Changed it to MDRV_DEVICE_DISABLE() instead. Updated drivers. [Aaron Giles] Reorganized the token parsing for machine configurations. The core parsing code knows how to create/replace/remove devices, but all device token parsing is now handled in the device_config class, which in turn will make use of any interface classes or device-specific token handling for custom token processing. [Aaron Giles] Moved many validity checks out of validity.c and into the device interface classes. For example, address space validation is now part of the memory interface class. [Aaron Giles] Consolidated address space parameters (bus width, endianness, etc.) into a single address_space_config class. Updated all code that queried for address space parameters to use the new mechanism. [Aaron Giles]
* SDLMAME now compiles against SDL 1.3 up to HG rev 4464. Everything beyond ↵ Couriersud2010-06-037-57/+183
| | | | 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-025-52/+5
|
* SDL: fix compilation for GTK+ 2.20 and later [R. Belmont, Wingman] R. Belmont2010-05-271-0/+4
|
* Fix for Win32 SDL build.mame0137u4 Aaron Giles2010-05-051-1/+1
|
* Fix the memory leaks with the strconv.c function by Scott Stone2010-04-237-16/+18
| | | using osd_malloc() instead. Fixed other memory leaks as well. [Oliver Stoneberg]
* Fix SDL debugger typo. Olivier Galibert2010-03-221-1/+1
|
* several cleanups based on cppcheck and VS2008 Code Analysis [Oliver Stöneberg] Fabio Priuli2010-03-175-4/+7
| | | | | | | | | | | | | 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]
* SDL: fix Fortify-reported stack smash [Belegdol] R. Belmont2010-03-081-1/+1
|
* Fix compile error.mame0136u4 Aaron Giles2010-03-041-1/+1
|