Skip to content

Commit 2b21ee5

Browse files
committed
Update scale test to make windows have unique displays
1 parent 8caa369 commit 2b21ee5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/testscale.c

+5
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ int main(int argc, char *argv[])
132132
quit(2);
133133
}
134134
SDL_GetTextureSize(drawstate->sprite, &drawstate->sprite_rect.w, &drawstate->sprite_rect.h);
135+
136+
/* Ensure each window will have a different scale to make each window have a unique display */
137+
drawstate->sprite_rect.w *= i * 2.f;
138+
drawstate->sprite_rect.h *= i * 2.f;
139+
135140
SDL_SetTextureScaleMode(drawstate->sprite, SDL_SCALEMODE_PIXELART);
136141
drawstate->scale_direction = 1;
137142
}

0 commit comments

Comments
 (0)