summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@openedhand.com>2007-09-18 18:28:25 +0200
committerDodji Seketeli <dodji@openedhand.com>2007-10-02 16:55:17 +0200
commita5bd536869f646e4024befa84f6e677b990310bc (patch)
treeba3a17873e226fd46d783efcb306b075eeb233c0 /fb
parent6307ee77091041af2d34e93bc164352d4438a808 (diff)
fbcmap_mi.c: add a missing api
* fb/fbcmap_mi.c: (fbSetVisualTypesAndMasks): added this entry point that was missing. This is useful so that servers using this entry point can use fbcmap_mi.c, and be obliged to stick to fbcmap.c. Note that fbcmap.c does implement this entry point. Up to now, kdrive based server could not use fbcmap_mi.c because this entry point was missing. The will allow Xephyr to properly use GL.
Diffstat (limited to 'fb')
-rw-r--r--fb/fbcmap_mi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fb/fbcmap_mi.c b/fb/fbcmap_mi.c
index 58bcae3aa..188decd4c 100644
--- a/fb/fbcmap_mi.c
+++ b/fb/fbcmap_mi.c
@@ -103,6 +103,14 @@ fbSetVisualTypes (int depth, int visuals, int bitsPerRGB)
return miSetVisualTypes(depth, visuals, bitsPerRGB, -1);
}
+Bool
+fbSetVisualTypesAndMasks (int depth, int visuals, int bitsPerRGB,
+ Pixel redMask, Pixel greenMask, Pixel blueMask)
+{
+ return miSetVisualTypesAndMasks(depth, visuals, bitsPerRGB, -1,
+ redMask, greenMask, blueMask);
+}
+
/*
* Given a list of formats for a screen, create a list
* of visuals and depths for the screen which coorespond to