xfree86/dga: Make mieq_install Bool
mieq_installed is used as a boolean, so why not make it such. Also it's a static variable, so the the explicit zero initialization can be removed. Signed-off-by: Ville Syrjala <syrjala@sci.fi> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f4cb25c2ed
commit
e3fef815cf
|
@ -53,7 +53,7 @@
|
|||
|
||||
static DevPrivateKeyRec DGAScreenKeyRec;
|
||||
#define DGAScreenKeyRegistered dixPrivateKeyRegistered(&DGAScreenKeyRec)
|
||||
static int mieq_installed = 0;
|
||||
static Bool mieq_installed;
|
||||
|
||||
static Bool DGACloseScreen(int i, ScreenPtr pScreen);
|
||||
static void DGADestroyColormap(ColormapPtr pmap);
|
||||
|
@ -252,7 +252,7 @@ DGACloseScreen(int i, ScreenPtr pScreen)
|
|||
|
||||
if (mieq_installed) {
|
||||
mieqSetHandler(ET_DGAEvent, NULL);
|
||||
mieq_installed = 0;
|
||||
mieq_installed = FALSE;
|
||||
}
|
||||
|
||||
FreeMarkedVisuals(pScreen);
|
||||
|
@ -449,7 +449,7 @@ xf86SetDGAMode(
|
|||
|
||||
if (!mieq_installed) {
|
||||
mieqSetHandler(ET_DGAEvent, DGAHandleEvent);
|
||||
mieq_installed = 1;
|
||||
mieq_installed = TRUE;
|
||||
}
|
||||
|
||||
return Success;
|
||||
|
@ -472,7 +472,7 @@ DGASetInputMode(int index, Bool keyboard, Bool mouse)
|
|||
|
||||
if (!mieq_installed) {
|
||||
mieqSetHandler(ET_DGAEvent, DGAHandleEvent);
|
||||
mieq_installed = 1;
|
||||
mieq_installed = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user