Skip to content

Commit

Permalink
Add SetTextureScaleMode
Browse files Browse the repository at this point in the history
  • Loading branch information
capehill committed Jul 26, 2024
1 parent 018676d commit 8614346
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/render/amigaos4/SDL_rc_texture.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2023 Sam Lantinga <[email protected]>
Copyright (C) 1997-2024 Sam Lantinga <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down Expand Up @@ -295,6 +295,11 @@ OS4_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
}
}

void
OS4_SetTextureScaleMode(SDL_Renderer *renderer, SDL_Texture *texture, SDL_ScaleMode scaleMode)
{
}

int
OS4_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture)
{
Expand Down
4 changes: 3 additions & 1 deletion src/render/amigaos4/SDL_rc_texture.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Simple DirectMedia Layer
Copyright (C) 1997-2023 Sam Lantinga <[email protected]>
Copyright (C) 1997-2024 Sam Lantinga <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down Expand Up @@ -52,6 +52,8 @@ extern void OS4_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture);

extern void OS4_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture);

extern void OS4_SetTextureScaleMode(SDL_Renderer *renderer, SDL_Texture *texture, SDL_ScaleMode scaleMode);

#endif

/* vi: set ts=4 sw=4 expandtab: */
Expand Down
1 change: 1 addition & 0 deletions src/render/amigaos4/SDL_render_compositing.c
Original file line number Diff line number Diff line change
Expand Up @@ -1149,6 +1149,7 @@ OS4_CreateRenderer(SDL_Window * window, Uint32 flags)
renderer->UpdateTexture = OS4_UpdateTexture;
renderer->LockTexture = OS4_LockTexture;
renderer->UnlockTexture = OS4_UnlockTexture;
renderer->SetTextureScaleMode = OS4_SetTextureScaleMode;
renderer->SetRenderTarget = OS4_SetRenderTarget;
renderer->QueueSetViewport = OS4_QueueNop;
renderer->QueueSetDrawColor = OS4_QueueNop;
Expand Down

0 comments on commit 8614346

Please sign in to comment.