heh, oops (thanks Thomas)

This commit is contained in:
Zack Rusin 2005-07-08 07:43:00 +00:00
parent 0a28516a6e
commit 4ab73a73f4
6 changed files with 90 additions and 132 deletions

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }

View File

@ -335,17 +335,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
if (!pScrn->vtSema) { if (!pScrn->vtSema) {
ExaScreenPriv(pScreen); ExaScreenPriv(pScreen);
pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth); pPixmap = pExaScr->SavedCreatePixmap(pScreen, w, h, depth);
pExaPixmap = ExaGetPixmapPriv(pPixmap); } else {
if (!w || !h)
pExaPixmap->score = EXA_PIXMAP_SCORE_PINNED;
else
pExaPixmap->score = EXA_PIXMAP_SCORE_INIT;
pExaPixmap->area = NULL;
pExaPixmap->dirty = FALSE;
return pPixmap;
}
bpp = BitsPerPixel (depth); bpp = BitsPerPixel (depth);
if (bpp == 32 && depth == 24) if (bpp == 32 && depth == 24)
{ {
@ -359,6 +349,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth)
} }
pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp); pPixmap = fbCreatePixmapBpp (pScreen, w, h, depth, bpp);
}
if (!pPixmap) if (!pPixmap)
return NULL; return NULL;
pExaPixmap = ExaGetPixmapPriv(pPixmap); pExaPixmap = ExaGetPixmapPriv(pPixmap);
@ -1085,8 +1076,10 @@ exaPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what)
switch (what) { switch (what) {
case PW_BACKGROUND: case PW_BACKGROUND:
pExaScr->SavedPaintWindowBackground(pWin, pRegion, what); pExaScr->SavedPaintWindowBackground(pWin, pRegion, what);
break;
case PW_BORDER: case PW_BORDER:
pExaScr->SavedPaintWindowBorder(pWin, pRegion, what); pExaScr->SavedPaintWindowBorder(pWin, pRegion, what);
break;
} }
return; return;
} }