mirror of
https://github.com/X11Libre/xf86-video-fbdev.git
synced 2026-03-25 18:10:06 +00:00
Compare commits
9 Commits
XEVIE-BASE
...
DRI-trunk-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db6514cea0 | ||
|
|
1e80fe1bf9 | ||
|
|
5d8a0a2e47 | ||
|
|
69d61895f3 | ||
|
|
806863c5f6 | ||
|
|
595a614cd9 | ||
|
|
62bec818a1 | ||
|
|
48e31aaed2 | ||
|
|
3a00d91359 |
17
src/fbdev.c
17
src/fbdev.c
@@ -1,4 +1,4 @@
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.44 2003/09/24 02:43:21 dawes Exp $ */
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/fbdev/fbdev.c,v 1.43 2003/04/23 21:51:35 tsi Exp $ */
|
||||
|
||||
/*
|
||||
* Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
|
||||
@@ -377,7 +377,6 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
int default_depth, fbbpp;
|
||||
const char *mod = NULL, *s;
|
||||
const char **syms = NULL;
|
||||
int type;
|
||||
|
||||
if (flags & PROBE_DETECT) return FALSE;
|
||||
|
||||
@@ -533,7 +532,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
xf86SetDpi(pScrn, 0, 0);
|
||||
|
||||
/* Load bpp-specific modules */
|
||||
switch ((type = fbdevHWGetType(pScrn)))
|
||||
switch (fbdevHWGetType(pScrn))
|
||||
{
|
||||
case FBDEVHW_PLANES:
|
||||
mod = "afb";
|
||||
@@ -574,7 +573,7 @@ FBDevPreInit(ScrnInfoPtr pScrn, int flags)
|
||||
return FALSE;
|
||||
default:
|
||||
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
|
||||
"Fbdev type (%d) not supported yet.", type);
|
||||
"Fbdev type (%d) not supported yet.");
|
||||
return FALSE;
|
||||
}
|
||||
if (mod && xf86LoadSubModule(pScrn, mod) == NULL) {
|
||||
@@ -607,7 +606,6 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
VisualPtr visual;
|
||||
int init_picture = 0;
|
||||
int ret,flags,width,height;
|
||||
int type;
|
||||
|
||||
TRACE_ENTER("FBDevScreenInit");
|
||||
|
||||
@@ -685,7 +683,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
fPtr->fbstart = fPtr->fbmem + fPtr->fboff;
|
||||
}
|
||||
|
||||
switch ((type = fbdevHWGetType(pScrn)))
|
||||
switch (fbdevHWGetType(pScrn))
|
||||
{
|
||||
#ifdef USE_AFB
|
||||
case FBDEVHW_PLANES:
|
||||
@@ -752,7 +750,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
default:
|
||||
xf86DrvMsg(scrnIndex, X_ERROR,
|
||||
"Internal error: fbdev type (%d) unsupported in"
|
||||
" FBDevScreenInit\n", type);
|
||||
" FBDevScreenInit\n");
|
||||
ret = FALSE;
|
||||
break;
|
||||
}
|
||||
@@ -805,7 +803,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
miDCInitialize(pScreen, xf86GetPointerScreenFuncs());
|
||||
|
||||
/* colormap */
|
||||
switch ((type = fbdevHWGetType(pScrn)))
|
||||
switch (fbdevHWGetType(pScrn))
|
||||
{
|
||||
/* XXX It would be simpler to use miCreateDefColormap() in all cases. */
|
||||
#ifdef USE_AFB
|
||||
@@ -835,8 +833,7 @@ FBDevScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
|
||||
return FALSE;
|
||||
default:
|
||||
xf86DrvMsg(scrnIndex, X_ERROR,
|
||||
"Internal error: invalid fbdev type (%d) in FBDevScreenInit\n",
|
||||
type);
|
||||
"Internal error: invalid fbdev type (%d) in FBDevScreenInit\n");
|
||||
return FALSE;
|
||||
}
|
||||
flags = CMAP_PALETTED_TRUECOLOR;
|
||||
|
||||
Reference in New Issue
Block a user