diff --git a/include/gfx/gfx.h b/include/gfx/gfx.h index 966c632..88ee16a 100644 --- a/include/gfx/gfx.h +++ b/include/gfx/gfx.h @@ -152,7 +152,7 @@ void gfx_copy_stretch_blend_amap_alpha(struct texture *dst, int dx, int dy, int void gfx_copy_rot_zoom(Texture *dst, Texture *src, int sx, int sy, int w, int h, float rotate, float mag); void gfx_copy_rot_zoom_amap(Texture *dst, Texture *src, int sx, int sy, int w, int h, float rotate, float mag); void gfx_copy_rot_zoom_use_amap(Texture *dst, Texture *src, int sx, int sy, int w, int h, float rotate, float mag); -void gfx_copy_root_zoom2(Texture *dst, float cx, float cy, Texture *src, float scx, float scy, float rot, float mag); +void gfx_copy_rot_zoom2(Texture *dst, float cx, float cy, Texture *src, float scx, float scy, float rot, float mag); void gfx_copy_reverse_LR(Texture *dst, int dx, int dy, Texture *src, int sx, int sy, int w, int h); void gfx_copy_reverse_UD(Texture *dst, int dx, int dy, Texture *src, int sx, int sy, int w, int h); void gfx_copy_reverse_amap_LR(Texture *dst, int dx, int dy, Texture *src, int sx, int sy, int w, int h); diff --git a/src/draw.c b/src/draw.c index f0cb753..79f3624 100644 --- a/src/draw.c +++ b/src/draw.c @@ -775,7 +775,7 @@ void gfx_copy_rot_zoom_use_amap(Texture *dst, Texture *src, int sx, int sy, int copy_rot_zoom(dst, src, sx, sy, w, h, rotate, mag, &hitbox_shader.s); } -void gfx_copy_root_zoom2(Texture *dst, float cx, float cy, Texture *src, float scx, float scy, float rot, float mag) +void gfx_copy_rot_zoom2(Texture *dst, float cx, float cy, Texture *src, float scx, float scy, float rot, float mag) { gfx_fill_amap(dst, 0, 0, dst->w, dst->h, 0); diff --git a/src/hll/DrawGraph.c b/src/hll/DrawGraph.c index d8de2b5..6a2d5f9 100644 --- a/src/hll/DrawGraph.c +++ b/src/hll/DrawGraph.c @@ -300,7 +300,7 @@ static void DrawGraph_CopyRotZoomUseAMap(int dst, int src, int sx, int sy, int w static void DrawGraph_CopyRotZoom2Bilinear(int dst, float cx, float cy, int src, float scx, float scy, float rot, float mag) { - gfx_copy_root_zoom2(DTEX(dst), cx, cy, STEX(src), scx, scy, rot, mag); + gfx_copy_rot_zoom2(DTEX(dst), cx, cy, STEX(src), scx, scy, rot, mag); } static void DrawGraph_CopyRotateY(int write, int dst, int src, int sx, int sy, int w, int h, float rot, float mag) diff --git a/src/hll/vmSprite.c b/src/hll/vmSprite.c index 9d3ebb5..cda19a0 100644 --- a/src/hll/vmSprite.c +++ b/src/hll/vmSprite.c @@ -470,7 +470,7 @@ static void vmSprite_DrawEffect(int effect, int time) gfx_clear(); gfx_copy(screen, 0, 0, &base, 0, 0, screen->w, screen->h); - gfx_copy_root_zoom2(screen, cx, cy, &src, src.w / 2.0f, src.h / 2.0f, rate * -360, 1.0f - rate); + gfx_copy_rot_zoom2(screen, cx, cy, &src, src.w / 2.0f, src.h / 2.0f, rate * -360, 1.0f - rate); gfx_swap(); uint64_t t2 = SDL_GetTicks64() - start;