head 1.8; access; symbols pkgsrc-2013Q2:1.8.0.8 pkgsrc-2013Q2-base:1.8 pkgsrc-2012Q4:1.8.0.6 pkgsrc-2012Q4-base:1.8 pkgsrc-2011Q4:1.8.0.4 pkgsrc-2011Q4-base:1.8 pkgsrc-2011Q2:1.8.0.2 pkgsrc-2011Q2-base:1.8 pkgsrc-2010Q4:1.7.0.46 pkgsrc-2010Q4-base:1.7 pkgsrc-2010Q3:1.7.0.44 pkgsrc-2010Q3-base:1.7 pkgsrc-2010Q2:1.7.0.42 pkgsrc-2010Q2-base:1.7 pkgsrc-2010Q1:1.7.0.40 pkgsrc-2010Q1-base:1.7 pkgsrc-2009Q4:1.7.0.38 pkgsrc-2009Q4-base:1.7 pkgsrc-2009Q3:1.7.0.36 pkgsrc-2009Q3-base:1.7 pkgsrc-2009Q2:1.7.0.34 pkgsrc-2009Q2-base:1.7 pkgsrc-2009Q1:1.7.0.32 pkgsrc-2009Q1-base:1.7 pkgsrc-2008Q4:1.7.0.30 pkgsrc-2008Q4-base:1.7 pkgsrc-2008Q3:1.7.0.28 pkgsrc-2008Q3-base:1.7 cube-native-xorg:1.7.0.26 cube-native-xorg-base:1.7 pkgsrc-2008Q2:1.7.0.24 pkgsrc-2008Q2-base:1.7 cwrapper:1.7.0.22 pkgsrc-2008Q1:1.7.0.20 pkgsrc-2008Q1-base:1.7 pkgsrc-2007Q4:1.7.0.18 pkgsrc-2007Q4-base:1.7 pkgsrc-2007Q3:1.7.0.16 pkgsrc-2007Q3-base:1.7 pkgsrc-2007Q2:1.7.0.14 pkgsrc-2007Q2-base:1.7 pkgsrc-2007Q1:1.7.0.12 pkgsrc-2007Q1-base:1.7 pkgsrc-2006Q4:1.7.0.10 pkgsrc-2006Q4-base:1.7 pkgsrc-2006Q3:1.7.0.8 pkgsrc-2006Q3-base:1.7 pkgsrc-2006Q2:1.7.0.6 pkgsrc-2006Q2-base:1.7 pkgsrc-2006Q1:1.7.0.4 pkgsrc-2006Q1-base:1.7 pkgsrc-2005Q4:1.7.0.2 pkgsrc-2005Q4-base:1.7 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 buildlink2-base:1.6 netbsd-1-3-PATCH003:1.2; locks; strict; comment @# @; 1.8 date 2011.02.06.05.00.57; author wiz; state dead; branches; next 1.7; 1.7 date 2005.11.17.19.55.55; author joerg; state Exp; branches; next 1.6; 1.6 date 2002.03.27.20.44.37; author kristerw; state dead; branches; next 1.5; 1.5 date 2002.02.20.17.21.00; author mycroft; state Exp; branches; next 1.4; 1.4 date 99.04.03.21.45.16; author mycroft; state dead; branches; next 1.3; 1.3 date 98.12.15.10.34.34; author mycroft; state Exp; branches; next 1.2; 1.2 date 98.08.07.10.40.37; author agc; state Exp; branches; next 1.1; 1.1 date 98.07.04.12.05.07; author mycroft; state Exp; branches; next ; desc @@ 1.8 log @Remove xmame und xmess -- use mame/mess instead. Ok kristerw @ text @$NetBSD: patch-af,v 1.7 2005/11/17 19:55:55 joerg Exp $ --- src/unix/joystick-drivers/joy_standard.c.orig 2005-11-17 16:17:48.000000000 +0000 +++ src/unix/joystick-drivers/joy_standard.c @@@@ -6,7 +6,7 @@@@ static int use_old_driver = 0; struct rc_option joy_standard_opts[] = { /* name, shortname, type, dest, deflt, min, max, func, help */ -#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) +#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly) { "joydevname", "jdev", rc_string, &joy_dev, "/dev/joy", 0, 0, NULL, "Joystick device prefix (defaults to /dev/joy)" }, @@@@ -29,7 +29,7 @@@@ struct rc_option joy_standard_opts[] = { #include /* specific joystick for PC clones */ -#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) +#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly) #include typedef struct joystick joy_struct; @@@@ -142,7 +142,7 @@@@ void joy_standard_init(void) /* fall through to the next case */ case 1: joy_data[i].num_axes = 2; -#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) +#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly) joy_data[i].num_buttons = 2; #else joy_data[i].num_buttons = JOY_BUTTONS; @@@@ -217,7 +217,7 @@@@ void joy_standard_poll(void) continue; /* get value of buttons */ -#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) +#if defined(__ARCH_netbsd) || defined(__ARCH_freebsd) || defined(__ARCH_openbsd) || defined(__ARCH_dragonfly) joy_data[i].buttons[0] = my_joy_data.b1; joy_data[i].buttons[1] = my_joy_data.b2; #else @ 1.7 log @Add DragonFly support. For the DGA drivers, include sys/time.h before sys/resource.h on DragonFly, struct timeval is needed. @ text @d1 1 a1 1 $NetBSD$ @ 1.6 log @Update xmame to version 0.59.1. Changes since xmame-0.58.3 include: - Everything from MAME 0.59. - Set some more sensible defaults for the various path settings in fileio.c (e.g., XMAMEROOT/samples for samplepath). - Fixed a segfault in psikyosh games. (David Haywood) @ text @d1 5 a5 6 $NetBSD: patch-af,v 1.5 2002/02/20 17:21:00 mycroft Exp $ --- src/unix/video-drivers/xf86_dga2.c.orig Wed Feb 6 03:33:31 2002 +++ src/unix/video-drivers/xf86_dga2.c Wed Feb 20 17:14:59 2002 @@@@ -405,9 +405,17 @@@@ while(XDGAGetViewportStatus(display, xf86ctx.screen)) ; d7 9 a15 14 - memset(xf86ctx.base_addr, 0, - xf86ctx.device->mode.bytesPerScanline - * xf86ctx.device->mode.imageHeight); + if (xf86ctx.device->mode.flags & XDGASolidFillRect) { + XDGAFillRectangle(display, xf86ctx.screen, 0, 0, + DisplayWidth(display, xf86ctx.screen), + DisplayHeight(display, xf86ctx.screen), + BlackPixel(display, xf86ctx.screen)); + XDGASync(display, xf86ctx.screen); + } else { + memset(xf86ctx.base_addr, 0, + xf86ctx.device->mode.bytesPerScanline + * xf86ctx.device->mode.imageHeight); + } d17 24 a40 2 effect_init2(bitmap_depth, depth, xf86ctx.width); @ 1.5 log @Use XDGAFillRectangle() to clear the display if possible, avoiding issues with using memset() on mapped video buffers. (The memset() fails on PPC due to the use of dcbz, for example.) @ text @d1 1 a1 1 $NetBSD$ @ 1.4 log @0.35b8.1 @ text @d1 6 a6 7 $NetBSD: patch-af,v 1.3 1998/12/15 10:34:34 mycroft Exp $ --- src/unix/devices.c.orig Sun Dec 6 07:18:42 1998 +++ src/unix/devices.c Tue Dec 15 04:10:00 1998 @@@@ -13,7 +13,7 @@@@ #include "xmame.h" #include "devices.h" d8 17 a24 5 -#if defined I386_JOYSTICK && !(defined netbsd_i386) +#if defined I386_JOYSTICK && !(defined NETBSD) #include #ifdef JS_VERSION #define I386NEW_JOYSTICK 1 @ 1.3 log @0.34b8.1 @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Add NetBSD RCS Ids. @ text @d3 11 a13 29 --- src/unix/devices.c.orig Wed Jun 17 05:48:00 1998 +++ src/unix/devices.c Sat Jul 4 07:42:07 1998 @@@@ -60,7 +60,7 @@@@ #elif I386_JOYSTICK void i386_poll_joystick (void); /* specific joystick for PC clones */ -#ifdef netbsd_i386 +#ifdef NETBSD #include extern struct joystick joy_data,joy_orig; #else @@@@ -658,7 +658,7 @@@@ { #if ( defined USE_JOYSTICK ) && ( defined I386_JOYSTICK ) int res; -#ifdef netbsd_i386 +#ifdef NETBSD res = read(joy_fd,&joy_data,sizeof(struct joystick) ); if (res == sizeof(struct joystick )) { #else @@@@ -666,7 +666,7 @@@@ if (res == sizeof(struct JS_DATA_TYPE )) { #endif /* get value of buttons */ -#ifdef netbsd_i386 +#ifdef NETBSD joy_b1 = joy_data.b1; joy_b2 = joy_data.b2; #else @ 1.1 log @Update to 0.33b6.1. @ text @d1 2 @