mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-26 12:27:44 +00:00
testpalette: use SDL_SCALEMODE_NEAREST for single pixel copies
This commit is contained in:
@@ -327,21 +327,25 @@ static bool CreateTextures()
|
||||
if (!black_texture1) {
|
||||
return false;
|
||||
}
|
||||
SDL_SetTextureScaleMode(black_texture1, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
black_texture2 = CreateTexture(data, SDL_arraysize(data));
|
||||
if (!black_texture2) {
|
||||
return false;
|
||||
}
|
||||
SDL_SetTextureScaleMode(black_texture2, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
white_texture1 = CreateTexture(data, SDL_arraysize(data));
|
||||
if (!white_texture1) {
|
||||
return false;
|
||||
}
|
||||
SDL_SetTextureScaleMode(white_texture1, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
white_texture2 = CreateTexture(data, SDL_arraysize(data));
|
||||
if (!white_texture2) {
|
||||
return false;
|
||||
}
|
||||
SDL_SetTextureScaleMode(white_texture2, SDL_SCALEMODE_NEAREST);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user