Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver
This commit is contained in:
commit
af9afe4cc5
|
@ -356,6 +356,14 @@ extern Bool InitializePsDriver(int ndx, ScreenPtr pScreen, int argc,
|
||||||
char **argv);
|
char **argv);
|
||||||
extern XpContextPtr PsGetContextFromWindow(WindowPtr win);
|
extern XpContextPtr PsGetContextFromWindow(WindowPtr win);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Functions in PsCache.c
|
||||||
|
*/
|
||||||
|
|
||||||
|
extern int PsBmIsImageCached(int gWidth, int gHeight, char *pBuffer);
|
||||||
|
extern int PsBmPutImageInCache(int gWidth, int gHeight, char *pBuffer);
|
||||||
|
extern void PsBmClearImageCache(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Functions in PsPrint.c
|
* Functions in PsPrint.c
|
||||||
*/
|
*/
|
||||||
|
@ -427,6 +435,9 @@ extern void PsSetSpans(DrawablePtr pDrawable, GCPtr pGC, char *pSrc,
|
||||||
extern void PsPutScaledImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
|
extern void PsPutScaledImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
|
||||||
int x, int y, int w, int h, int leftPad, int format,
|
int x, int y, int w, int h, int leftPad, int format,
|
||||||
int imageRes, char *pImage);
|
int imageRes, char *pImage);
|
||||||
|
extern void PsPutScaledImageIM(DrawablePtr pDrawable, GCPtr pGC, int depth,
|
||||||
|
int x, int y, int w, int h, int leftPad,
|
||||||
|
int format, int imageRes, char *pImage);
|
||||||
extern void PsPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
|
extern void PsPutImage(DrawablePtr pDrawable, GCPtr pGC, int depth,
|
||||||
int x, int y, int w, int h, int leftPad, int format,
|
int x, int y, int w, int h, int leftPad, int format,
|
||||||
char *pImage);
|
char *pImage);
|
||||||
|
@ -569,6 +580,7 @@ extern PixmapPtr PsCreatePixmap(ScreenPtr pScreen, int width, int height,
|
||||||
extern void PsScrubPixmap(PixmapPtr pPixmap);
|
extern void PsScrubPixmap(PixmapPtr pPixmap);
|
||||||
extern Bool PsDestroyPixmap(PixmapPtr pPixmap);
|
extern Bool PsDestroyPixmap(PixmapPtr pPixmap);
|
||||||
extern DisplayListPtr PsGetFreeDisplayBlock(PsPixmapPrivPtr priv);
|
extern DisplayListPtr PsGetFreeDisplayBlock(PsPixmapPrivPtr priv);
|
||||||
|
extern void PsReplay(DisplayElmPtr elm, DrawablePtr pDrawable);
|
||||||
extern void PsReplayPixmap(PixmapPtr pix, DrawablePtr pDrawable);
|
extern void PsReplayPixmap(PixmapPtr pix, DrawablePtr pDrawable);
|
||||||
extern int PsCloneDisplayElm(PixmapPtr dst,
|
extern int PsCloneDisplayElm(PixmapPtr dst,
|
||||||
DisplayElmPtr elm, DisplayElmPtr newElm,
|
DisplayElmPtr elm, DisplayElmPtr newElm,
|
||||||
|
|
|
@ -118,7 +118,6 @@ PsPutScaledImage(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y,
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
int r, c;
|
int r, c;
|
||||||
char *pt;
|
|
||||||
PsOutPtr psOut;
|
PsOutPtr psOut;
|
||||||
ColormapPtr cMap;
|
ColormapPtr cMap;
|
||||||
int pageRes, sw, sh;
|
int pageRes, sw, sh;
|
||||||
|
@ -230,7 +229,6 @@ PsPutScaledImageIM(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y,
|
||||||
{
|
{
|
||||||
int i, j;
|
int i, j;
|
||||||
int r, c;
|
int r, c;
|
||||||
char *pt;
|
|
||||||
PsOutPtr psOut;
|
PsOutPtr psOut;
|
||||||
ColormapPtr cMap;
|
ColormapPtr cMap;
|
||||||
int pageRes, sw, sh;
|
int pageRes, sw, sh;
|
||||||
|
|
|
@ -317,7 +317,7 @@ PsBmClearImageCacheList(
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
PsBmClearImageCache()
|
PsBmClearImageCache(void)
|
||||||
{
|
{
|
||||||
PsBmClearImageCacheList(bm_cache);
|
PsBmClearImageCacheList(bm_cache);
|
||||||
|
|
||||||
|
|
|
@ -286,9 +286,8 @@ char *getFontFilename(FontPtr pFont)
|
||||||
const char *dlfnam;
|
const char *dlfnam;
|
||||||
FILE *file;
|
FILE *file;
|
||||||
struct stat statb;
|
struct stat statb;
|
||||||
int count, i, status;
|
|
||||||
char buf[512];
|
char buf[512];
|
||||||
char *front, *end, *fn;
|
char *front, *fn;
|
||||||
char font_dir_fname[PATH_MAX], /* Full path of fonts.dir */
|
char font_dir_fname[PATH_MAX], /* Full path of fonts.dir */
|
||||||
font_file_fname[PATH_MAX]; /* Name of font file (excluding path) */
|
font_file_fname[PATH_MAX]; /* Name of font file (excluding path) */
|
||||||
|
|
||||||
|
@ -592,7 +591,6 @@ PsFontTypeInfoRec *PsCreateFontTypeInfoRec(DrawablePtr pDrawable, FontPtr pFont)
|
||||||
{
|
{
|
||||||
char *dlfnam;
|
char *dlfnam;
|
||||||
PsFontTypeInfoRec *rec;
|
PsFontTypeInfoRec *rec;
|
||||||
char *psname;
|
|
||||||
|
|
||||||
if (!(dlfnam = PsGetFontName(pFont)))
|
if (!(dlfnam = PsGetFontName(pFont)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -181,7 +181,6 @@ PsContextPrivPtr
|
||||||
PsGetPsContextPriv( DrawablePtr pDrawable )
|
PsGetPsContextPriv( DrawablePtr pDrawable )
|
||||||
{
|
{
|
||||||
XpContextPtr pCon;
|
XpContextPtr pCon;
|
||||||
PsContextPrivPtr cPriv;
|
|
||||||
|
|
||||||
switch(pDrawable->type)
|
switch(pDrawable->type)
|
||||||
{
|
{
|
||||||
|
|
|
@ -33,6 +33,7 @@ copyright holders.
|
||||||
#include <dix-config.h>
|
#include <dix-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "Ps.h"
|
||||||
#include "gcstruct.h"
|
#include "gcstruct.h"
|
||||||
#include "windowstr.h"
|
#include "windowstr.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
|
|
|
@ -119,8 +119,6 @@ InitializePsDriver(ndx, pScreen, argc, argv)
|
||||||
int maxRes, maxDim, numBytes;
|
int maxRes, maxDim, numBytes;
|
||||||
PsScreenPrivPtr pPriv;
|
PsScreenPrivPtr pPriv;
|
||||||
#endif
|
#endif
|
||||||
char **printerNames;
|
|
||||||
int numPrinters;
|
|
||||||
int nv, /* total number of visuals */
|
int nv, /* total number of visuals */
|
||||||
nv_1bit, /* number of 8bit visuals */
|
nv_1bit, /* number of 8bit visuals */
|
||||||
nv_8bit, /* number of 8bit visuals */
|
nv_8bit, /* number of 8bit visuals */
|
||||||
|
|
|
@ -191,7 +191,6 @@ Bool
|
||||||
PsDestroyPixmap(PixmapPtr pPixmap)
|
PsDestroyPixmap(PixmapPtr pPixmap)
|
||||||
{
|
{
|
||||||
PsPixmapPrivPtr priv = (PsPixmapPrivPtr)pPixmap->devPrivate.ptr;
|
PsPixmapPrivPtr priv = (PsPixmapPrivPtr)pPixmap->devPrivate.ptr;
|
||||||
DisplayListPtr disp = priv->dispList;
|
|
||||||
|
|
||||||
if( --pPixmap->refcnt ) return TRUE;
|
if( --pPixmap->refcnt ) return TRUE;
|
||||||
|
|
||||||
|
@ -512,6 +511,8 @@ PsCreateFillElementList(PixmapPtr pix, int *nElms)
|
||||||
case PolyFillArcCmd:
|
case PolyFillArcCmd:
|
||||||
*nElms += elm->c.arcs.nArcs;
|
*nElms += elm->c.arcs.nArcs;
|
||||||
break;
|
break;
|
||||||
|
default: /* keep the compiler happy with unhandled enums */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -574,6 +575,8 @@ PsCreateFillElementList(PixmapPtr pix, int *nElms)
|
||||||
*nElms += 1;
|
*nElms += 1;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default: /* keep the compiler happy with unhandled enums */
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,8 +215,6 @@ PsPolyFillRect(
|
||||||
*/
|
*/
|
||||||
if (nRects == 1)
|
if (nRects == 1)
|
||||||
{
|
{
|
||||||
extern Bool noDbeExtension;
|
|
||||||
|
|
||||||
if ( (pRects[0].x==0) && (pRects[0].y==0) &&
|
if ( (pRects[0].x==0) && (pRects[0].y==0) &&
|
||||||
(pRects[0].width==pDrawable->width) && (pRects[0].height==pDrawable->height) &&
|
(pRects[0].width==pDrawable->width) && (pRects[0].height==pDrawable->height) &&
|
||||||
(pGC->fillStyle == FillSolid) &&
|
(pGC->fillStyle == FillSolid) &&
|
||||||
|
@ -227,7 +225,7 @@ PsPolyFillRect(
|
||||||
#endif /* DEBUG_gismobile */
|
#endif /* DEBUG_gismobile */
|
||||||
/* Remove all content from the pixmap as it would be covered
|
/* Remove all content from the pixmap as it would be covered
|
||||||
* by the whole rect anyway */
|
* by the whole rect anyway */
|
||||||
PsScrubPixmap(pDrawable);
|
PsScrubPixmap((PixmapPtr)pDrawable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* DBE */
|
#endif /* DBE */
|
||||||
|
|
|
@ -292,13 +292,10 @@ PsStartPage(
|
||||||
{
|
{
|
||||||
int iorient, iplex, icount, ires;
|
int iorient, iplex, icount, ires;
|
||||||
unsigned short iwd, iht;
|
unsigned short iwd, iht;
|
||||||
register WindowPtr pChild;
|
|
||||||
PsContextPrivPtr pConPriv =
|
PsContextPrivPtr pConPriv =
|
||||||
(PsContextPrivPtr)pCon->devPrivates[PsContextPrivateIndex].ptr;
|
(PsContextPrivPtr)pCon->devPrivates[PsContextPrivateIndex].ptr;
|
||||||
PsWindowPrivPtr pWinPriv =
|
PsWindowPrivPtr pWinPriv =
|
||||||
(PsWindowPrivPtr)pWin->devPrivates[PsWindowPrivateIndex].ptr;
|
(PsWindowPrivPtr)pWin->devPrivates[PsWindowPrivateIndex].ptr;
|
||||||
char s[80];
|
|
||||||
xEvent event;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Put a pointer to the context in the window private structure
|
* Put a pointer to the context in the window private structure
|
||||||
|
|
|
@ -329,11 +329,7 @@ PsPolyText16(
|
||||||
{
|
{
|
||||||
PsOutPtr psOut;
|
PsOutPtr psOut;
|
||||||
ColormapPtr cMap;
|
ColormapPtr cMap;
|
||||||
unsigned short c,
|
unsigned short fontPage;
|
||||||
c_hiByte,
|
|
||||||
c_lowByte,
|
|
||||||
fontPage;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
if( PsUpdateDrawableGC(pGC, pDrawable, &psOut, &cMap)==FALSE )
|
if( PsUpdateDrawableGC(pGC, pDrawable, &psOut, &cMap)==FALSE )
|
||||||
return x;
|
return x;
|
||||||
|
|
|
@ -96,6 +96,7 @@ extern WindowPtr *WindowTable;
|
||||||
* placed on the screen's root window if the property was defined in
|
* placed on the screen's root window if the property was defined in
|
||||||
* the start-up configuration resource database.
|
* the start-up configuration resource database.
|
||||||
*/
|
*/
|
||||||
|
#if 0
|
||||||
static char *propStrings[] = {
|
static char *propStrings[] = {
|
||||||
DT_PRINT_JOB_HEADER,
|
DT_PRINT_JOB_HEADER,
|
||||||
DT_PRINT_JOB_TRAILER,
|
DT_PRINT_JOB_TRAILER,
|
||||||
|
@ -107,7 +108,7 @@ static char *propStrings[] = {
|
||||||
DT_PRINT_PAGE_COMMAND,
|
DT_PRINT_PAGE_COMMAND,
|
||||||
(char *)NULL
|
(char *)NULL
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* PsCreateWindow - watch for the creation of the root window.
|
* PsCreateWindow - watch for the creation of the root window.
|
||||||
|
@ -222,7 +223,6 @@ PsPaintWindow(
|
||||||
RegionPtr pRegion,
|
RegionPtr pRegion,
|
||||||
int what)
|
int what)
|
||||||
{
|
{
|
||||||
int status;
|
|
||||||
WindowPtr pRoot;
|
WindowPtr pRoot;
|
||||||
|
|
||||||
#define FUNCTION 0
|
#define FUNCTION 0
|
||||||
|
|
|
@ -683,7 +683,6 @@ void
|
||||||
PsOut_EndFile(PsOutPtr self, int closeFile)
|
PsOut_EndFile(PsOutPtr self, int closeFile)
|
||||||
{
|
{
|
||||||
char coms[50];
|
char coms[50];
|
||||||
int i;
|
|
||||||
|
|
||||||
if (!self)
|
if (!self)
|
||||||
return;
|
return;
|
||||||
|
@ -1592,7 +1591,8 @@ PsOut_BeginPattern(PsOutPtr self, void *tag, int w, int h, PsFillEnum type,
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case PsTile: key[1] = 't'; break;
|
case PsTile: key[1] = 't'; break;
|
||||||
case PsStip: key[1] = 's'; break;
|
case PsStip: key[1] = 's'; break;
|
||||||
case PsOpStip: key[1] = 'o'; break; }
|
case PsOpStip: key[1] = 'o'; break;
|
||||||
|
default: break; }
|
||||||
S_OutTok(self, key, 0);
|
S_OutTok(self, key, 0);
|
||||||
S_OutTok(self, "db/PatternType 1 d/PaintType 1 d", 0);
|
S_OutTok(self, "db/PatternType 1 d/PaintType 1 d", 0);
|
||||||
S_OutTok(self, "/TilingType 1 d/BBox[0 0", 0);
|
S_OutTok(self, "/TilingType 1 d/BBox[0 0", 0);
|
||||||
|
@ -1637,7 +1637,8 @@ PsOut_SetPattern(PsOutPtr self, void *tag, PsFillEnum type)
|
||||||
switch(type) {
|
switch(type) {
|
||||||
case PsTile: key[0] = 't'; break;
|
case PsTile: key[0] = 't'; break;
|
||||||
case PsStip: key[0] = 's'; break;
|
case PsStip: key[0] = 's'; break;
|
||||||
case PsOpStip: key[0] = 'o'; break; }
|
case PsOpStip: key[0] = 'o'; break;
|
||||||
|
default: break; }
|
||||||
S_OutTok(self, key, 0);
|
S_OutTok(self, key, 0);
|
||||||
S_OutTok(self, "spt", 1);
|
S_OutTok(self, "spt", 1);
|
||||||
self->CurColor = PSOUTCOLOR_NOCOLOR;
|
self->CurColor = PSOUTCOLOR_NOCOLOR;
|
||||||
|
@ -1663,7 +1664,6 @@ typedef enum PsDownfontFontType_
|
||||||
int
|
int
|
||||||
PsOut_DownloadType1(PsOutPtr self, const char *auditmsg, const char *name, const char *fname)
|
PsOut_DownloadType1(PsOutPtr self, const char *auditmsg, const char *name, const char *fname)
|
||||||
{
|
{
|
||||||
int i;
|
|
||||||
int stt;
|
int stt;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
|
|
@ -267,6 +267,7 @@ extern void S_OutTok(PsOutPtr self, char *tok, int cr);
|
||||||
typedef struct PsOutRec_ *PsOutPtr;
|
typedef struct PsOutRec_ *PsOutPtr;
|
||||||
#endif /* USE_PSOUT_PRIVATE */
|
#endif /* USE_PSOUT_PRIVATE */
|
||||||
|
|
||||||
|
extern FILE * PsOut_ChangeFile(PsOutPtr self, FILE *fp);
|
||||||
extern PsOutPtr PsOut_BeginFile(FILE *fp, char *title, int orient, int count, int plex,
|
extern PsOutPtr PsOut_BeginFile(FILE *fp, char *title, int orient, int count, int plex,
|
||||||
int res, int wd, int ht, Bool raw);
|
int res, int wd, int ht, Bool raw);
|
||||||
extern void PsOut_EndFile(PsOutPtr self, int closeFile);
|
extern void PsOut_EndFile(PsOutPtr self, int closeFile);
|
||||||
|
|
Loading…
Reference in New Issue