Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Use BMA_ACTUALWIDTH instead of BMA_WIDTH to calculate the renderer ou…
Browse files Browse the repository at this point in the history
…tput size (#154)
  • Loading branch information
capehill committed Jul 1, 2020
1 parent c0ad738 commit bc7c4b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/amigaos4/SDL_render_compositing.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ OS4_GetBitMapSize(SDL_Renderer * renderer, struct BitMap * bitmap, int * w, int

if (bitmap) {
if (w) {
*w = data->iGraphics->GetBitMapAttr(bitmap, BMA_WIDTH);
*w = data->iGraphics->GetBitMapAttr(bitmap, BMA_ACTUALWIDTH);
//dprintf("w=%d\n", *w);
}
if (h) {
Expand Down Expand Up @@ -480,6 +480,8 @@ OS4_RenderCopy(SDL_Renderer * renderer, SDL_RenderCommand * cmd,
scalex = srcrect->w ? (float)dstrect->w / srcrect->w : 1.0f;
scaley = srcrect->h ? (float)dstrect->h / srcrect->h : 1.0f;

//dprintf("scalex %f, scaley %f (source %d, dest %d)\n", scalex, scaley, srcrect->w, dstrect->w);

ret_code = data->iGraphics->CompositeTags(
OS4_ConvertBlendMode(mode),
src,
Expand Down

0 comments on commit bc7c4b5

Please sign in to comment.