diff options
author | Derrick Renaud <derrickr@mamedev.org> | 2009-03-28 22:55:34 +0000 |
---|---|---|
committer | Derrick Renaud <derrickr@mamedev.org> | 2009-03-28 22:55:34 +0000 |
commit | 01962d4fc5c6f881632421f773d9f21fa9ea1a3b (patch) | |
tree | b2490e5fc42a76665da7351341df7ffbc55892d4 /src/osd | |
parent | 9c63c950435a3d896cfb5d0d8cb639d55f559819 (diff) |
Crosshair update
* Added Crosshair Options menu
- ability to individually enable/disable crosshairs
- ability for them to automatically disappear after a set amount of time
- ability to select crosshair graphic
- all settings are saved in the cfg file
* Removed F1 toggle for crosshairs
* Added new command option -crsshairpath
- store all selectable graphics here
- see config.txt for further info
OSD NOTE: render_load_png() has been changed to no longer force usage of the artwork directory.
Do a search for "render_load_png(" and replace with "render_load_png(OPTION_ARTPATH, " if needed.
----------------------------
F1 is now free to use for something new. I was thinking it would be perfect for a context sensitive help file. Each menu item could have a help tag, that it would look up and display info from an HTML file.
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/windows/drawd3d.c | 4 | ||||
-rw-r--r-- | src/osd/windows/video.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c index 99f0bff8e14..570822ef5bd 100644 --- a/src/osd/windows/drawd3d.c +++ b/src/osd/windows/drawd3d.c @@ -506,11 +506,11 @@ static int drawd3d_window_init(win_window_info *window) // experimental: load a PNG to use for vector rendering; it is treated // as a brightness map - d3d->vector_bitmap = render_load_png(NULL, "vector.png", NULL, NULL); + d3d->vector_bitmap = render_load_png(OPTION_ARTPATH, NULL, "vector.png", NULL, NULL); if (d3d->vector_bitmap != NULL) { bitmap_fill(d3d->vector_bitmap, NULL, MAKE_ARGB(0xff,0xff,0xff,0xff)); - d3d->vector_bitmap = render_load_png(NULL, "vector.png", d3d->vector_bitmap, NULL); + d3d->vector_bitmap = render_load_png(OPTION_ARTPATH, NULL, "vector.png", d3d->vector_bitmap, NULL); } // configure the adapter for the mode we want diff --git a/src/osd/windows/video.c b/src/osd/windows/video.c index 38c8b837a35..49fe4475268 100644 --- a/src/osd/windows/video.c +++ b/src/osd/windows/video.c @@ -450,7 +450,7 @@ static void load_effect_overlay(running_machine *machine, const char *filename) strcpy(dest, ".png"); // load the file - effect_bitmap = render_load_png(NULL, tempstr, NULL, NULL); + effect_bitmap = render_load_png(OPTION_ARTPATH, NULL, tempstr, NULL, NULL); if (effect_bitmap == NULL) { mame_printf_error("Unable to load PNG file '%s'\n", tempstr); |