Skip to content

Commit b7a7d78

Browse files
committed
rename "cache" -> "multi"
1 parent f8f78a8 commit b7a7d78

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src_c/alphablit.c

+5-5
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ SoftBlitPyGame(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst,
590590
}
591591

592592
void
593-
pg_cached_blitcopy(SDL_Surface *src, SDL_Surface *dst,
594-
BlitSequence *destinations)
593+
pg_multi_blitcopy(SDL_Surface *src, SDL_Surface *dst,
594+
BlitSequence *destinations)
595595
{
596596
Py_ssize_t i;
597597
for (i = 0; i < destinations->size; i++) {
@@ -613,8 +613,8 @@ pg_cached_blitcopy(SDL_Surface *src, SDL_Surface *dst,
613613
}
614614

615615
int
616-
SoftCachedBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
617-
BlitSequence *destinations)
616+
SoftMultiBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
617+
BlitSequence *destinations)
618618
{
619619
int okay = 1;
620620
int src_locked = 0, dst_locked = 0;
@@ -645,7 +645,7 @@ SoftCachedBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
645645
}
646646

647647
/* blitcopy */
648-
pg_cached_blitcopy(src, dst, destinations);
648+
pg_multi_blitcopy(src, dst, destinations);
649649
break;
650650
default:
651651
okay = 0;

src_c/surface.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -2176,12 +2176,12 @@ _surf_fblits_item_check_and_blit(PyObject *src_surf, SDL_Surface *src,
21762176
}
21772177

21782178
int
2179-
_surf_fblits_cached_item_check_and_blit(PyObject *src_surf,
2180-
pgSurfaceObject *self,
2181-
SDL_Surface *src, SDL_Surface *dst,
2182-
PyObject *pos_sequence,
2183-
int blend_flags,
2184-
BlitSequence *destinations)
2179+
_surf_fblits_multiblit_item_check_and_blit(PyObject *src_surf,
2180+
pgSurfaceObject *self,
2181+
SDL_Surface *src, SDL_Surface *dst,
2182+
PyObject *pos_sequence,
2183+
int blend_flags,
2184+
BlitSequence *destinations)
21852185
{
21862186
SDL_Surface *subsurface;
21872187
int suboffsetx = 0, suboffsety = 0;
@@ -2303,7 +2303,7 @@ _surf_fblits_cached_item_check_and_blit(PyObject *src_surf,
23032303

23042304
pgSurface_Prep((pgSurfaceObject *)src_surf);
23052305

2306-
error = SoftCachedBlitPyGame(src, dst, blend_flags, destinations);
2306+
error = SoftMultiBlitPyGame(src, dst, blend_flags, destinations);
23072307

23082308
if (subsurface)
23092309
SDL_SetClipRect(subsurface, &orig_clip);
@@ -2377,7 +2377,7 @@ _surf_fblits_blit(pgSurfaceObject *self, PyObject *item, int blend_flags,
23772377
return;
23782378
}
23792379

2380-
*error = _surf_fblits_cached_item_check_and_blit(
2380+
*error = _surf_fblits_multiblit_item_check_and_blit(
23812381
src_surf, self, src, dst, pos_or_seq, blend_flags, destinations);
23822382
}
23832383

src_c/surface.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,12 @@ pygame_Blit(SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst,
364364
SDL_Rect *dstrect, int blend_flags);
365365

366366
int
367-
SoftCachedBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
368-
BlitSequence *destinations);
367+
SoftMultiBlitPyGame(SDL_Surface *src, SDL_Surface *dst, int blend_flags,
368+
BlitSequence *destinations);
369369

370370
void
371-
pg_cached_blitcopy(SDL_Surface *src, SDL_Surface *dst,
372-
BlitSequence *destinations);
371+
pg_multi_blitcopy(SDL_Surface *src, SDL_Surface *dst,
372+
BlitSequence *destinations);
373373

374374
int
375375
premul_surf_color_by_alpha(SDL_Surface *src, SDL_Surface *dst);

0 commit comments

Comments
 (0)