You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidSagoSprite::Draw(SDL_Renderer* target, Sint32 frameTime, int x, int y, SagoLogicalResize* resize) const {
69
-
DrawScaled(target, frameTime, x, y, data->imgCord.w, data->imgCord.h, resize);
47
+
DrawScaled(target, frameTime, x, y, imgCord.w, imgCord.h, resize);
70
48
}
71
49
72
50
voidSagoSprite::DrawRotated(SDL_Renderer* target, Sint32 frameTime, int x, int y, constdouble angleRadian, SagoLogicalResize* resize) const {
73
-
SDL_Point center = {this->data->origin.x, this->data->origin.y};
74
-
DrawScaledAndRotated(target, frameTime, x, y, data->imgCord.w, data->imgCord.h, angleRadian, ¢er, SDL_FLIP_NONE, resize);
51
+
SDL_Point center = {this->origin.x, this->origin.y};
52
+
DrawScaledAndRotated(target, frameTime, x, y, imgCord.w, imgCord.h, angleRadian, ¢er, SDL_FLIP_NONE, resize);
75
53
}
76
54
77
55
voidSagoSprite::DrawScaled(SDL_Renderer* target, Sint32 frameTime, int x, int y, int w, int h, SagoLogicalResize* resize) const {
78
56
DrawScaledAndRotated(target, frameTime, x, y, w, h, 0.0, nullptr, SDL_FLIP_NONE, resize);
79
57
}
80
58
81
59
voidSagoSprite::DrawScaledAndRotated(SDL_Renderer* target, Sint32 frameTime, int x, int y, int w, int h, constdouble angleRadian, const SDL_Point* center, const SDL_RendererFlip flip, SagoLogicalResize* resize) const {
0 commit comments