diff options
Diffstat (limited to 'src/osd/osdmini/minimain.c')
-rw-r--r-- | src/osd/osdmini/minimain.c | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/osd/osdmini/minimain.c b/src/osd/osdmini/minimain.c index c3fac86f2e2..69f7c841002 100644 --- a/src/osd/osdmini/minimain.c +++ b/src/osd/osdmini/minimain.c @@ -7,34 +7,34 @@ // Copyright Aaron Giles // All rights reserved. // -// Redistribution and use in source and binary forms, with or -// without modification, are permitted provided that the +// Redistribution and use in source and binary forms, with or +// without modification, are permitted provided that the // following conditions are met: // -// * Redistributions of source code must retain the above -// copyright notice, this list of conditions and the +// * Redistributions of source code must retain the above +// copyright notice, this list of conditions and the // following disclaimer. -// * Redistributions in binary form must reproduce the -// above copyright notice, this list of conditions and -// the following disclaimer in the documentation and/or +// * Redistributions in binary form must reproduce the +// above copyright notice, this list of conditions and +// the following disclaimer in the documentation and/or // other materials provided with the distribution. -// * Neither the name 'MAME' nor the names of its -// contributors may be used to endorse or promote -// products derived from this software without specific +// * Neither the name 'MAME' nor the names of its +// contributors may be used to endorse or promote +// products derived from this software without specific // prior written permission. // -// THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND -// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND -// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -// EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, -// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -// DAMAGE (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +// THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +// EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +// DAMAGE (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN // IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // //============================================================ @@ -108,16 +108,16 @@ void osd_init(running_machine *machine) our_target = render_target_alloc(machine, NULL, 0); if (our_target == NULL) fatalerror("Error creating render target"); - + // nothing yet to do to initialize sound, since we don't have any // sound updates are handled by osd_update_audio_stream() below - + // initialize the input system by adding devices // let's pretend like we have a keyboard device keyboard_device = input_device_add(machine, DEVICE_CLASS_KEYBOARD, "Keyboard", NULL); if (keyboard_device == NULL) fatalerror("Error creating keyboard device"); - + // our faux keyboard only has a couple of keys (corresponding to the // common defaults) input_device_item_add(keyboard_device, "Esc", &keyboard_state[KEY_ESCAPE], ITEM_ID_ESC, keyboard_get_state); @@ -131,7 +131,7 @@ void osd_init(running_machine *machine) input_device_item_add(keyboard_device, "JoyR", &keyboard_state[KEY_JOYSTICK_R], ITEM_ID_RIGHT, keyboard_get_state); // hook up the debugger log -// add_logerror_callback(machine, output_oslog); +// add_logerror_callback(machine, output_oslog); } @@ -153,16 +153,16 @@ void osd_update(running_machine *machine, int skip_redraw) { const render_primitive_list *primlist; int minwidth, minheight; - + // get the minimum width/height for the current layout render_target_get_minimum_size(our_target, &minwidth, &minheight); - + // make that the size of our target render_target_set_bounds(our_target, minwidth, minheight, 0); - + // get the list of primitives for the target at the current size primlist = render_target_get_primitives(our_target); - + // lock them, and then render them osd_lock_acquire(primlist->lock); // do the drawing here @@ -180,7 +180,7 @@ void osd_update(running_machine *machine, int skip_redraw) void osd_update_audio_stream(running_machine *machine, INT16 *buffer, int samples_this_frame) { - // if we had actual sound output, we would copy the + // if we had actual sound output, we would copy the // interleaved stereo samples to our sound stream } @@ -202,8 +202,8 @@ void osd_set_mastervolume(int attenuation) void osd_customize_input_type_list(input_type_desc *typelist) { - // This function is called on startup, before reading the - // configuration from disk. Scan the list, and change the + // This function is called on startup, before reading the + // configuration from disk. Scan the list, and change the // default control mappings you want. It is quite possible // you won't need to change a thing. } |