mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-26 17:16:59 +08:00
Removed width/height parameters from LoadTexture()
You can directly access the texture width and height now.
This commit is contained in:
@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
|
||||
SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
|
||||
SDL_RenderClear(renderer);
|
||||
|
||||
sprite = LoadTexture(renderer, "icon.bmp", true, NULL, NULL);
|
||||
sprite = LoadTexture(renderer, "icon.bmp", true);
|
||||
if (!sprite) {
|
||||
quit(6);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user