We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8caa369 commit 2b21ee5Copy full SHA for 2b21ee5
test/testscale.c
@@ -132,6 +132,11 @@ int main(int argc, char *argv[])
132
quit(2);
133
}
134
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
140
SDL_SetTextureScaleMode(drawstate->sprite, SDL_SCALEMODE_PIXELART);
141
drawstate->scale_direction = 1;
142
0 commit comments