mirror of
https://github.com/joel16/SDL2.git
synced 2025-02-25 14:11:06 +00:00
More test coverage
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403807
This commit is contained in:
parent
117273ed79
commit
a5b7ba39e6
@ -153,29 +153,31 @@ MoveSprites(SDL_WindowID window, SDL_TextureID sprite)
|
||||
SDL_RenderLine(0, 1, 0, window_h-2);
|
||||
SDL_RenderLine(window_w-1, 1, window_w-1, window_h-2);
|
||||
|
||||
/* Test fill */
|
||||
/* Test fill and copy */
|
||||
SDL_SetRenderDrawColor(0xFF, 0xFF, 0xFF, 0xFF);
|
||||
temp.x = 1;
|
||||
temp.y = 1;
|
||||
temp.w = sprite_w;
|
||||
temp.h = sprite_h;
|
||||
SDL_RenderFill(&temp);
|
||||
SDL_RenderCopy(sprite, NULL, &temp);
|
||||
temp.x = window_w-sprite_w-1;
|
||||
temp.y = 1;
|
||||
temp.w = sprite_w;
|
||||
temp.h = sprite_h;
|
||||
SDL_RenderFill(&temp);
|
||||
SDL_RenderCopy(sprite, NULL, &temp);
|
||||
temp.x = 1;
|
||||
temp.y = window_h-sprite_h-1;
|
||||
temp.w = sprite_w;
|
||||
temp.h = sprite_h;
|
||||
SDL_RenderFill(&temp);
|
||||
|
||||
/* Test copy */
|
||||
temp.x = 1;
|
||||
temp.y = 1;
|
||||
temp.w = sprite_w;
|
||||
temp.h = sprite_h;
|
||||
SDL_RenderCopy(sprite, NULL, &temp);
|
||||
temp.x = window_w-sprite_w-1;
|
||||
temp.y = window_h-sprite_h-1;
|
||||
temp.w = sprite_w;
|
||||
temp.h = sprite_h;
|
||||
SDL_RenderFill(&temp);
|
||||
SDL_RenderCopy(sprite, NULL, &temp);
|
||||
|
||||
/* Test diagonal lines */
|
||||
|
Loading…
x
Reference in New Issue
Block a user