mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: compat: re-add GEInitEvent() for proprietary nvidia driver
Yet another very internal function that the proprietary Nvidia driver is using for unknown reasons. NVidia really needs a separate function for just for some trivial struct initialization and don't manage to add three simple lines to their code, so we have to make an extra function for them. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
7ef8400df5
commit
bf8c7d27fe
28
hw/xfree86/compat/geeventinit.c
Normal file
28
hw/xfree86/compat/geeventinit.c
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <dix-config.h>
|
||||
|
||||
#include <X11/Xfuncproto.h>
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "os/osdep.h"
|
||||
|
||||
#include "xf86_compat.h"
|
||||
|
||||
/*
|
||||
* needed for NVidia proprietary driver 340.x versions
|
||||
*
|
||||
* they really need special functions for trivial struct initialization :p
|
||||
*
|
||||
* this function had been obsolete and removed long ago, but NVidia folks
|
||||
* still didn't do basic maintenance and fixed their driver
|
||||
*/
|
||||
|
||||
_X_EXPORT void GEInitEvent(xGenericEvent *ev, int extension);
|
||||
|
||||
void GEInitEvent(xGenericEvent *ev, int extension)
|
||||
{
|
||||
xf86NVidiaBugObsoleteFunc("GEInitEvent()");
|
||||
|
||||
ev->type = GenericEvent;
|
||||
ev->extension = extension;
|
||||
ev->length = 0;
|
||||
}
|
||||
@@ -8,6 +8,7 @@ srcs_xorg_compat = [
|
||||
|
||||
if get_option('legacy_nvidia_340x')
|
||||
srcs_xorg_compat += 'timercheck.c'
|
||||
srcs_xorg_compat += 'geeventinit.c'
|
||||
endif
|
||||
|
||||
xorg_compat = static_library('xorg_compat',
|
||||
|
||||
Reference in New Issue
Block a user