Lines Matching refs:pPriv
135 * argument: (X68kScreenRec *)pPriv : X68k private screen record
140 x68kGraphOpen(X68kScreenRec *pPriv)
142 if( !x68kFbCommonOpen(pPriv, "/dev/grf1") )
147 if (pPriv->depth == 15 && pPriv->class == TrueColor) {
152 pPriv->reg->gpal[i++] = x;
153 pPriv->reg->gpal[i++] = x;
157 if (pPriv->depth == 4 && pPriv->class == StaticGray ) {
161 pPriv->reg->gpal[i] = (i*2 << 11) | (i*2 << 6) | (i*2 << 1);
170 * argument: (X68kScreenRec *)pPriv : X68k private screen record
174 x68kGraphClose(X68kScreenRec *pPriv)
176 x68kFbCommonClose(pPriv);
192 X68kScreenRec *pPriv;
195 pPriv = x68kGetScreenRecByType(X68K_FB_GRAPHIC);
202 x68kSetScreenPrivate(pScreen, pPriv);
205 if (!fbSetupScreen(pScreen, pPriv->fb,
206 pPriv->scr_width, pPriv->scr_height,
207 pPriv->dpi, pPriv->dpi, pPriv->fb_width,
208 pPriv->depth))
218 if (!x68kCfbFinishScreenInit(pScreen, pPriv->fb,
219 pPriv->scr_width, pPriv->scr_height,
220 pPriv->dpi, pPriv->dpi, pPriv->fb_width))
254 X68kScreenRec *pPriv = x68kGetScreenPrivate(pScreen);
263 if (pPriv->depth == 15 && pPriv->class == TrueColor) {
295 else if (pPriv->depth == 4 && pPriv->class == StaticGray ) {
354 X68kScreenRec *pPriv = x68kGetScreenPrivate(cmap->pScreen);
362 if (cmap == pPriv->installedMap)
364 if (pPriv->installedMap)
365 WalkTree(pPriv->installedMap->pScreen, TellLostMap,
366 (pointer) &(pPriv->installedMap->mid));
368 if (pPriv->class & DynamicClass) {
376 for (i = 0; i < 1<<(pPriv->depth); i++) {
397 x68kUpdateColormap(cmap->pScreen, 0, 1<<(pPriv->depth), rmap, gmap, bmap);
399 pPriv->installedMap = cmap;
413 X68kScreenRec *pPriv = x68kGetScreenPrivate(cmap->pScreen);
415 if (cmap == pPriv->installedMap) {
438 X68kScreenRec *pPriv = x68kGetScreenPrivate(pScreen);
439 *pCmapList = pPriv->installedMap->mid;
455 X68kScreenRec *pPriv = x68kGetScreenPrivate(pmap->pScreen);
460 if (pPriv->installedMap != NULL && pPriv->installedMap != pmap)
490 X68kScreenRec *pPriv = x68kGetScreenPrivate(pScreen);
491 volatile uint16_t *pal = pPriv->reg->gpal;