You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/directvnc/files/directvnc-mouse.patch

78 lines
2.3 KiB

*** dfb.c 2003-01-31 03:51:59.000000000 -0500
--- dfb-new.c 2005-07-10 15:12:37.000000000 -0400
***************
*** 24,34 ****
/* DirectFB interfaces needed */
IDirectFB *dfb = NULL;
IDirectFBSurface *primary;
IDirectFBDisplayLayer *layer;
IDirectFBInputDevice *keyboard;
! IDirectFBInputDevice *mouse;
IDirectFBEventBuffer *input_buffer;
DFBResult err;
DFBSurfaceDescription dsc;
DFBCardCapabilities caps;
DFBDisplayLayerConfig layer_config;
--- 24,34 ----
/* DirectFB interfaces needed */
IDirectFB *dfb = NULL;
IDirectFBSurface *primary;
IDirectFBDisplayLayer *layer;
IDirectFBInputDevice *keyboard;
! /* IDirectFBInputDevice *mouse; */
IDirectFBEventBuffer *input_buffer;
DFBResult err;
DFBSurfaceDescription dsc;
DFBCardCapabilities caps;
DFBDisplayLayerConfig layer_config;
***************
*** 64,74 ****
dsc.pixelformat = DSPF_RGB16;
DFBCHECK(dfb->CreateSurface(dfb, &dsc, &primary ));
primary->GetSize (primary, &opt.client.width, &opt.client.height);
DFBCHECK(dfb->GetInputDevice( dfb, DIDID_KEYBOARD, &keyboard ));
! DFBCHECK(dfb->GetInputDevice( dfb, DIDID_MOUSE, &mouse ));
DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE, &input_buffer));
}
/*
--- 64,74 ----
dsc.pixelformat = DSPF_RGB16;
DFBCHECK(dfb->CreateSurface(dfb, &dsc, &primary ));
primary->GetSize (primary, &opt.client.width, &opt.client.height);
DFBCHECK(dfb->GetInputDevice( dfb, DIDID_KEYBOARD, &keyboard ));
! /* DFBCHECK(dfb->GetInputDevice( dfb, DIDID_MOUSE, &mouse )); */
DFBCHECK (dfb->CreateInputEventBuffer (dfb, DICAPS_ALL, DFB_TRUE, &input_buffer));
}
/*
***************
*** 78,88 ****
dfb_deinit()
{
primary->Release( primary );
input_buffer->Release(input_buffer);
keyboard->Release( keyboard );
! mouse->Release( mouse );
layer->Release( layer );
dfb->Release( dfb );
}
void
--- 78,88 ----
dfb_deinit()
{
primary->Release( primary );
input_buffer->Release(input_buffer);
keyboard->Release( keyboard );
! /* mouse->Release( mouse ); */
layer->Release( layer );
dfb->Release( dfb );
}
void