Home
last modified time | relevance | path

Searched refs:firstcolor (Results 1 – 25 of 224) sorted by relevance

123456789

/dports/games/libretro-nxengine/nxengine-libretro-10c4381/nxengine/sdl/video/
H A DSDL_video.c67 int firstcolor, int ncolors) in LRSetPalette_logical() argument
72 if ( colors != (pal->colors + firstcolor) ) { in LRSetPalette_logical()
73 SDL_memcpy(pal->colors + firstcolor, colors, in LRSetPalette_logical()
90 SDL_Color *colors, int firstcolor, int ncolors) in LRSDL_SetPalette() argument
109 if ( ncolors > (palsize - firstcolor) ) { in LRSDL_SetPalette()
110 ncolors = (palsize - firstcolor); in LRSDL_SetPalette()
121 LRSetPalette_logical(screen, colors, firstcolor, ncolors); in LRSDL_SetPalette()
126 int SDL_SetColors(SDL_Surface *screen, SDL_Color *colors, int firstcolor, in SDL_SetColors() argument
130 colors, firstcolor, ncolors); in SDL_SetColors()
/dports/games/devilutionX/devilutionX-1.2.1/SourceS/
H A Dsdl_compat.h48 inline int SDLC_SetSurfaceColors(SDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolo… in SDLC_SetSurfaceColors() argument
51 return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) - 1; in SDLC_SetSurfaceColors()
53 return SDL_SetPaletteColors(surface->format->palette, colors, firstcolor, ncolors); in SDLC_SetSurfaceColors()
66 …eColors(SDL_Surface *surface, SDL_Palette *palette, SDL_Color *colors, int firstcolor, int ncolors) in SDLC_SetSurfaceAndPaletteColors() argument
69 if (ncolors > (palette->ncolors - firstcolor)) { in SDLC_SetSurfaceAndPaletteColors()
73 if (colors != (palette->colors + firstcolor)) in SDLC_SetSurfaceAndPaletteColors()
74 SDL_memcpy(palette->colors + firstcolor, colors, ncolors * sizeof(*colors)); in SDLC_SetSurfaceAndPaletteColors()
78 SDL_SetColors(SDL_GetVideoSurface(), colors, firstcolor, ncolors); in SDLC_SetSurfaceAndPaletteColors()
82 return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) - 1; in SDLC_SetSurfaceAndPaletteColors()
84 if (SDL_SetPaletteColors(palette, colors, firstcolor, ncolors) < 0) in SDLC_SetSurfaceAndPaletteColors()
/dports/devel/sdl12/SDL-1.2.15/src/video/photon/
H A DSDL_ph_video.c47 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
594 static int ph_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in ph_SetColors() argument
608 for (i=firstcolor; i<firstcolor+ncolors; i++) in ph_SetColors()
610 … syspalph[i] = PgRGB(colors[i-firstcolor].r, colors[i-firstcolor].g, colors[i-firstcolor].b); in ph_SetColors()
622 for (i=firstcolor; i<firstcolor+ncolors; i++) in ph_SetColors()
624 … syspalph[i] = PgRGB(colors[i-firstcolor].r, colors[i-firstcolor].g, colors[i-firstcolor].b); in ph_SetColors()
630 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0); in ph_SetColors()
637 PgSetPalette(&syspalph[firstcolor], 0, firstcolor, ncolors, Pg_PALSET_GLOBAL, 0); in ph_SetColors()
/dports/games/openxcom/OpenXcom-1.0/src/Battlescape/
H A DActionMenuItem.cpp120 void ActionMenuItem::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
122 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
123 _frame->setPalette(colors, firstcolor, ncolors); in setPalette()
124 _txtDescription->setPalette(colors, firstcolor, ncolors); in setPalette()
125 _txtAcc->setPalette(colors, firstcolor, ncolors); in setPalette()
126 _txtTU->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DBattlescapeMessage.cpp117 void BattlescapeMessage::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
119 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
120 _window->setPalette(colors, firstcolor, ncolors); in setPalette()
121 _text->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DWarningMessage.cpp96 void WarningMessage::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
98 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
99 _text->setPalette(colors, firstcolor, ncolors); in setPalette()
/dports/games/openxcom/OpenXcom-1.0/src/Interface/
H A DSlider.cpp158 void Slider::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
160 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
161 _txtMinus->setPalette(colors, firstcolor, ncolors); in setPalette()
162 _txtPlus->setPalette(colors, firstcolor, ncolors); in setPalette()
163 _frame->setPalette(colors, firstcolor, ncolors); in setPalette()
164 _button->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DFpsCounter.cpp65 void FpsCounter::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
67 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
68 _text->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DComboBox.cpp114 void ComboBox::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
116 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
117 _button->setPalette(colors, firstcolor, ncolors); in setPalette()
118 _arrow->setPalette(colors, firstcolor, ncolors); in setPalette()
119 _window->setPalette(colors, firstcolor, ncolors); in setPalette()
120 _list->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DScrollBar.cpp142 void ScrollBar::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
144 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
145 _track->setPalette(colors, firstcolor, ncolors); in setPalette()
146 _thumb->setPalette(colors, firstcolor, ncolors); in setPalette()
H A DTextButton.cpp189 void TextButton::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
191 Surface::setPalette(colors, firstcolor, ncolors); in setPalette()
192 _text->setPalette(colors, firstcolor, ncolors); in setPalette()
/dports/multimedia/handbrake/ffmpeg-4.4/libavcodec/
H A Dyop.c198 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
224 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
228 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
231 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
232 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavcodec/
H A Dyop.c196 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
222 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
226 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
229 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
230 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavcodec/
H A Dyop.c198 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
224 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
228 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
231 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
232 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavcodec/
H A Dyop.c198 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
224 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
228 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
231 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
232 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/
H A Dyop.c198 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
224 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
228 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
231 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
232 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavcodec/
H A Dyop.c196 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
222 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
226 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
229 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
230 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavcodec/
H A Dyop.c198 int tag, firstcolor, is_odd_frame; in yop_decode_frame() local
224 firstcolor = s->first_color[is_odd_frame]; in yop_decode_frame()
228 palette[i + firstcolor] = (s->srcptr[0] << 18) | in yop_decode_frame()
231 palette[i + firstcolor] |= 0xFFU << 24 | in yop_decode_frame()
232 (palette[i + firstcolor] >> 6) & 0x30303; in yop_decode_frame()
/dports/games/openxcom/OpenXcom-1.0/src/Engine/
H A DScreen.cpp231 void Screen::setPalette(SDL_Color* colors, int firstcolor, int ncolors, bool immediately) in setPalette() argument
233 if (_numColors && (_numColors != ncolors) && (_firstColor != firstcolor)) in setPalette()
237 memmove(&(deferredPalette[firstcolor]), colors, sizeof(SDL_Color)*ncolors); in setPalette()
242 memmove(&(deferredPalette[firstcolor]), colors, sizeof(SDL_Color) * ncolors); in setPalette()
244 _firstColor = firstcolor; in setPalette()
247 _surface->setPalette(colors, firstcolor, ncolors); in setPalette()
250 …if (immediately && _screen->format->BitsPerPixel == 8 && SDL_SetColors(_screen, colors, firstcolor in setPalette()
/dports/devel/sdl12/SDL-1.2.15/src/video/symbian/EKA2/
H A DSDL_epocvideo.cpp118 static int EPOC_SetColors(_THIS, int firstcolor, int ncolors,
290 int EPOC_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in EPOC_SetColors() argument
292 if ((firstcolor+ncolors) > 256) in EPOC_SetColors()
299 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
310 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
323 for(int i = firstcolor; i < ncolors; i++) in EPOC_SetColors()
337 if(EpocSdlEnv::SetPalette(firstcolor, ncolors, palette) == KErrNone) in EPOC_SetColors()
/dports/games/icebreaker/icebreaker-1.9.8/
H A Dtransition.c40 static int scrolltext(char * firsttext, SDL_Rect* firstrect, Uint32 firstcolor, char * secondtext, …
152 int scrolltext(char * firsttext, SDL_Rect* firstrect, Uint32 firstcolor, char * secondtext, SDL_Rec… in scrolltext() argument
199 puttext(firstrect->x,firstrect->y,4,firstcolor,firsttext); in scrolltext()
208 puttext(firstrect->x,firstrect->y,4,firstcolor,firsttext); in scrolltext()
/dports/games/openxcom/OpenXcom-1.0/src/Resource/
H A DResourcePack.cpp247 void ResourcePack::setPalette(SDL_Color *colors, int firstcolor, int ncolors) in setPalette() argument
251 i->second->getSurface()->setPalette(colors, firstcolor, ncolors); in setPalette()
256 i->second->setPalette(colors, firstcolor, ncolors); in setPalette()
260 i->second->setPalette(colors, firstcolor, ncolors); in setPalette()
/dports/games/triplane/triplane-classic-1.08.r20130224/src/io/
H A Dvideo.cpp49 void setpal_range(const char pal[][3], int firstcolor, int n, int reverse) { in setpal_range() argument
68 …te(video_state.surface, video_state.haverealpalette ? SDL_PHYSPAL : SDL_LOGPAL, cc, firstcolor, n); in setpal_range()
70 SDL_SetPalette(video_state.surface, SDL_PHYSPAL | SDL_LOGPAL, cc, firstcolor, n); in setpal_range()
72 memcpy(&curpal[firstcolor], cc, n * sizeof(SDL_Color)); in setpal_range()
/dports/games/libretro-hatari/hatari-561c07e/src/includes/
H A Dscreen.h16 int firstcolor, int ncolors) in SDL_SetColors() argument
19 firstcolor, ncolors); in SDL_SetColors()
/dports/devel/sdl12/SDL-1.2.15/src/video/nds/
H A DSDL_ndsvideo.c44 static int NDS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors);
472 int NDS_SetColors(_THIS, int firstcolor, int ncolors, SDL_Color *colors) in NDS_SetColors() argument
483 int i,j=firstcolor+ncolors; in NDS_SetColors()
484 for(i=firstcolor;i<j;i++) in NDS_SetColors()

123456789