Home
last modified time | relevance | path

Searched refs:colorbits (Results 1 – 25 of 45) sorted by relevance

12

/dports/graphics/svgalib/svgalib-1.4.3/src/
H A Dinterface.c73 int __svgalib_colorbits_to_colormode(int bpp, int colorbits) in __svgalib_colorbits_to_colormode() argument
75 if (colorbits == 8) in __svgalib_colorbits_to_colormode()
77 if (colorbits == 15) in __svgalib_colorbits_to_colormode()
79 if (colorbits == 16) in __svgalib_colorbits_to_colormode()
81 if (colorbits == 24) { in __svgalib_colorbits_to_colormode()
H A Dinterface.h17 int __svgalib_colorbits_to_colormode(int bpp, int colorbits);
/dports/games/tremulous/tremulous/tremulous-1.1.0-src/src/win32/
H A Dwin_glimp.c66 int colorbits,
93 int colorbits, in GLW_StartDriverAndSetMode() argument
347 src.cColorBits = colorbits; in GLW_CreatePFD()
471 if ( colorbits == 0 ) in GLW_InitDriver()
473 colorbits = glw_state.desktopBitsPixel; in GLW_InitDriver()
480 if ( colorbits > 16 ) { in GLW_InitDriver()
535 colorbits = glw_state.desktopBitsPixel; in GLW_InitDriver()
744 int colorbits, in GLW_SetMode() argument
779 if ( colorbits == 0 || ( !cdsFullscreen && colorbits >= 15 ) ) in GLW_SetMode()
816 if ( colorbits != 0 ) in GLW_SetMode()
[all …]
/dports/graphics/timg/timg-1.4.0/src/
H A Dunicode-block-canvas.cc99 template <int colorbits> static inline const char *AnsiSetFG() { in AnsiSetFG()
100 return colorbits == 8 ? PIXEL_SET_FG_COLOR8 : PIXEL_SET_FG_COLOR24; in AnsiSetFG()
102 template <int colorbits> static inline const char *AnsiSetBG() { in AnsiSetBG()
103 return colorbits == 8 ? PIXEL_SET_BG_COLOR8 : PIXEL_SET_BG_COLOR24; in AnsiSetBG()
105 template <int colorbits> static char *AnsiWriteColor(char *buf, rgba_t color) { in AnsiWriteColor()
106 static_assert(colorbits == 8 || colorbits == 24, "unsupported color bits"); in AnsiWriteColor()
107 if (colorbits == 8) in AnsiWriteColor()
216 template <int N, int colorbits> // Advancing N x-pixels per char
260 pos = AnsiWriteColor<colorbits>(pos, pick.fg); in AppendDoubleRow()
275 pos = str_append(pos, AnsiSetBG<colorbits>(), in AppendDoubleRow()
[all …]
H A Dunicode-block-canvas.h55 template <int N, int colorbits>
/dports/games/kreversi/kreversi-21.12.3/src/
H A DEngine.cpp388 quint64 colorbits = ComputeOccupiedBits(color); in computeMove() local
418 colorbits, opponentbits); in computeMove()
510 int cutoffval, quint64 colorbits, in ComputeMove2() argument
521 colorbits |= m_coord_bit[xplay][yplay]; in ComputeMove2()
545 colorbits |= m_coord_bit[x][y]; in ComputeMove2()
571 colorbits); in ComputeMove2()
578 retval = TryAllMoves(color, level, -LARGEINT, colorbits, opponentbits); in ComputeMove2()
632 quint64 opponentbits, quint64 colorbits) in TryAllMoves() argument
645 && (m_neighbor_bits[x][y] & colorbits) != null_bits) { in TryAllMoves()
647 colorbits); in TryAllMoves()
H A DEngine.h197 quint64 colorbits, quint64 opponentbits);
200 quint64 opponentbits, quint64 colorbits);
/dports/japanese/xv/xv-3.10a/
H A Dxvbmp.c546 int i, bit, bitshift[6], colorbits[6], bitshift2[6]; local
582 colorbits[i] = 0;
585 ++colorbits[i];
590 if (colorbits[i] > 8) { /* over 8-bit depth */
591 bitshift[i] += (colorbits[i] - 8);
595 bitshift2[i] = bitshift2[i+3] = 8 - colorbits[i];
701 colorbits[i] = 0;
704 ++colorbits[i];
709 if (colorbits[i] > 8) { /* over 8-bit depth */
710 bitshift[i] += (colorbits[i] - 8);
[all …]
/dports/graphics/xv/xv-3.10a/
H A Dxvbmp.c546 int i, bit, bitshift[6], colorbits[6], bitshift2[6]; local
582 colorbits[i] = 0;
585 ++colorbits[i];
590 if (colorbits[i] > 8) { /* over 8-bit depth */
591 bitshift[i] += (colorbits[i] - 8);
595 bitshift2[i] = bitshift2[i+3] = 8 - colorbits[i];
701 colorbits[i] = 0;
704 ++colorbits[i];
709 if (colorbits[i] > 8) { /* over 8-bit depth */
710 bitshift[i] += (colorbits[i] - 8);
[all …]
/dports/graphics/xv-m17n/xv-3.10a/
H A Dxvbmp.c546 int i, bit, bitshift[6], colorbits[6], bitshift2[6]; local
582 colorbits[i] = 0;
585 ++colorbits[i];
590 if (colorbits[i] > 8) { /* over 8-bit depth */
591 bitshift[i] += (colorbits[i] - 8);
595 bitshift2[i] = bitshift2[i+3] = 8 - colorbits[i];
701 colorbits[i] = 0;
704 ++colorbits[i];
709 if (colorbits[i] > 8) { /* over 8-bit depth */
710 bitshift[i] += (colorbits[i] - 8);
[all …]
/dports/games/dhewm3/dhewm3-1.5.1/neo/sys/
H A Dglimp.cpp110 int colorbits = 24; in GLimp_Init() local
123 if (colorbits == 24) in GLimp_Init()
124 colorbits = 16; in GLimp_Init()
139 int tcolorbits = colorbits; in GLimp_Init()
304 window = SDL_SetVideoMode(parms.width, parms.height, colorbits, flags); in GLimp_Init()
/dports/games/worldofpadman/worldofpadman-1.2.20080621/code/sdl/
H A Dsdl_glimp.c199 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
244 colorbits = 24; in GLimp_SetMode()
246 colorbits = r_colorbits->value; in GLimp_SetMode()
266 if (colorbits == 24) in GLimp_SetMode()
267 colorbits = 16; in GLimp_SetMode()
282 tcolorbits = colorbits; in GLimp_SetMode()
371 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()
/dports/games/ioquake3/ioquake3-1.36/code/sdl/
H A Dsdl_glimp.c209 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
264 colorbits = 24; in GLimp_SetMode()
266 colorbits = r_colorbits->value; in GLimp_SetMode()
286 if (colorbits == 24) in GLimp_SetMode()
287 colorbits = 16; in GLimp_SetMode()
302 tcolorbits = colorbits; in GLimp_SetMode()
391 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()
/dports/games/ioquake3-server/ioquake3-1.36/code/sdl/
H A Dsdl_glimp.c209 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
264 colorbits = 24; in GLimp_SetMode()
266 colorbits = r_colorbits->value; in GLimp_SetMode()
286 if (colorbits == 24) in GLimp_SetMode()
287 colorbits = 16; in GLimp_SetMode()
302 tcolorbits = colorbits; in GLimp_SetMode()
391 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()
/dports/games/tremulous/tremulous/tremulous-1.1.0-src/src/unix/
H A Dsdl_glimp.c535 int colorbits, depthbits, stencilbits; in GLW_SetMode() local
556 colorbits = 24; in GLW_SetMode()
558 colorbits = r_colorbits->value; in GLW_SetMode()
561 colorbits = 16; in GLW_SetMode()
581 if (colorbits == 24) in GLW_SetMode()
582 colorbits = 16; in GLW_SetMode()
597 tcolorbits = colorbits; in GLW_SetMode()
642 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLW_SetMode()
H A Dlinux_glimp.c913 int colorbits, depthbits, stencilbits; in GLW_SetMode() local
1034 colorbits = 24; in GLW_SetMode()
1036 colorbits = r_colorbits->value; in GLW_SetMode()
1039 colorbits = 16; in GLW_SetMode()
1059 if (colorbits == 24) in GLW_SetMode()
1060 colorbits = 16; in GLW_SetMode()
1075 tcolorbits = colorbits; in GLW_SetMode()
/dports/deskutils/egroupware/egroupware/bookmarks/inc/
H A Dclass.ico.inc.php396 $colorbits = '';
399 $colorbits .= str_pad(decbin(ord($this->formats[$index]['data'][$i])), 8, '0', STR_PAD_LEFT);
402 $total = strlen($colorbits);
407 imagesetpixel($im, $j, $i, $c[$colorbits[$offset]]);
/dports/graphics/sane-backends/sane-backends-1.0.32/backend/
H A Dpieusb_scancmd.h338 void sanei_pieusb_cmd_get_exposure_time(SANE_Int device_number, SANE_Int colorbits, struct Pieusb_E…
341 void sanei_pieusb_cmd_get_highlight_shadow(SANE_Int device_number, SANE_Int colorbits, struct Pieus…
348 void sanei_pieusb_cmd_set_ccd_mask(SANE_Int device_number, SANE_Byte colorbits, SANE_Byte* mask, SA…
/dports/games/bloodfrontier/bloodfrontier/src/engine/
H A Dmain.cpp154 VARF(colorbits, 0, 0, 32, initwarning("color depth"));
171 f->printf("colorbits %d\n", colorbits); in writeinitcfg()
328 if(colorbits) in setupscreen()
329 hasbpp = SDL_VideoModeOK(scr_w, scr_h, colorbits, SDL_OPENGL|flags)==colorbits; in setupscreen()
368 screen = SDL_SetVideoMode(scr_w, scr_h, hasbpp ? colorbits : 0, SDL_OPENGL|flags); in setupscreen()
374 if(!hasbpp) conoutf("\fr%d bit color buffer not supported - disabling", colorbits); in setupscreen()
387 usedcolorbits = hasbpp ? colorbits : 0; in setupscreen()
887 case 'c': colorbits = atoi(&argv[i][3]); break; in main()
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/
H A Dmain.cpp81 VARF(colorbits, 0, 0, 32, initwarning("color depth"));
129 f->printf("colorbits %d\n", colorbits); in writeinitcfg()
556 if(colorbits && modes) in setupscreen()
557 …->w : scr_w, modes!=(SDL_Rect **)-1 ? modes[0]->h : scr_h, colorbits, SDL_OPENGL|flags)==colorbits; in setupscreen()
596 screen = SDL_SetVideoMode(scr_w, scr_h, hasbpp ? colorbits : 0, SDL_OPENGL|flags); in setupscreen()
602 if(!hasbpp) conoutf("%d bit color buffer not supported - disabling", colorbits); in setupscreen()
618 usedcolorbits = hasbpp ? colorbits : 0; in setupscreen()
1066 case 'b': colorbits = atoi(a); break; in main()
/dports/games/openarena-server/openarena-engine-source-0.8.8/code/sdl/
H A Dsdl_glimp.c301 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
365 colorbits = r_colorbits->value; in GLimp_SetMode()
366 if ((!colorbits) || (colorbits >= 32)) in GLimp_SetMode()
367 colorbits = 24; in GLimp_SetMode()
388 if (colorbits == 24) in GLimp_SetMode()
389 colorbits = 16; in GLimp_SetMode()
404 tcolorbits = colorbits; in GLimp_SetMode()
504 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()
/dports/games/openarena/openarena-engine-source-0.8.8/code/sdl/
H A Dsdl_glimp.c301 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
365 colorbits = r_colorbits->value; in GLimp_SetMode()
366 if ((!colorbits) || (colorbits >= 32)) in GLimp_SetMode()
367 colorbits = 24; in GLimp_SetMode()
388 if (colorbits == 24) in GLimp_SetMode()
389 colorbits = 16; in GLimp_SetMode()
404 tcolorbits = colorbits; in GLimp_SetMode()
504 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()
/dports/games/vultures-eye/vulture-2.3.67/slashem/sys/msdos/
H A Dvidal2.c807 static unsigned char colorbits[]={0x08,0x04,0x02,0x01}; variable
945 if (colorbits[vplane] & color)
1048 if (cursor_color & colorbits[p]) { in alleg_DrawCursor()
1071 if (cursor_color & colorbits[p]) { in alleg_DrawCursor()
1090 if (cursor_color & colorbits[p]) { in alleg_DrawCursor()
1118 if (cursor_color & colorbits[p]) { in alleg_DrawCursor()
H A Dvidvga.c1098 static unsigned char colorbits[]={0x08,0x04,0x02,0x01}; variable
1236 if (colorbits[vplane] & color)
1344 if (cursor_color & colorbits[p]) { in vga_DrawCursor()
1367 if (cursor_color & colorbits[p]) { in vga_DrawCursor()
1386 if (cursor_color & colorbits[p]) { in vga_DrawCursor()
1414 if (cursor_color & colorbits[p]) { in vga_DrawCursor()
1627 if (petmark_color & colorbits[p]) {
/dports/games/evq3/evq3/code/sdl/
H A Dsdl_glimp.c314 int colorbits, depthbits, stencilbits; in GLimp_SetMode() local
359 colorbits = 24; in GLimp_SetMode()
361 colorbits = r_colorbits->value; in GLimp_SetMode()
385 if (colorbits == 24) in GLimp_SetMode()
386 colorbits = 16; in GLimp_SetMode()
401 tcolorbits = colorbits; in GLimp_SetMode()
495 if (!(vidscreen = SDL_SetVideoMode(glConfig.vidWidth, glConfig.vidHeight, colorbits, flags))) in GLimp_SetMode()

12