SDL API renaming: SDL_render.h
Fixes https://github.com/libsdl-org/SDL/issues/6883
This commit is contained in:
@@ -345,7 +345,7 @@ static Sint32 unifont_draw_glyph(Uint32 codepoint, int rendererID, SDL_Rect *dst
|
||||
const Uint32 cInTex = codepoint % UNIFONT_GLYPHS_IN_TEXTURE;
|
||||
srcrect.x = cInTex % UNIFONT_GLYPHS_IN_ROW * 16;
|
||||
srcrect.y = cInTex / UNIFONT_GLYPHS_IN_ROW * 16;
|
||||
SDL_RenderCopy(state->renderers[rendererID], texture, &srcrect, dstrect);
|
||||
SDL_RenderTexture(state->renderers[rendererID], texture, &srcrect, dstrect);
|
||||
}
|
||||
return unifontGlyph[codepoint].width;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ static void _Redraw(int rendererID)
|
||||
texture = SDL_CreateTextureFromSurface(renderer, textSur);
|
||||
SDL_FreeSurface(textSur);
|
||||
|
||||
SDL_RenderCopy(renderer, texture, NULL, &drawnTextRect);
|
||||
SDL_RenderTexture(renderer, texture, NULL, &drawnTextRect);
|
||||
SDL_DestroyTexture(texture);
|
||||
#else
|
||||
char *utext = text;
|
||||
@@ -569,7 +569,7 @@ static void _Redraw(int rendererID)
|
||||
texture = SDL_CreateTextureFromSurface(renderer, textSur);
|
||||
SDL_FreeSurface(textSur);
|
||||
|
||||
SDL_RenderCopy(renderer, texture, NULL, &drawnTextRect);
|
||||
SDL_RenderTexture(renderer, texture, NULL, &drawnTextRect);
|
||||
SDL_DestroyTexture(texture);
|
||||
#else
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user