Skip to content

Commit

Permalink
Adjusted SDL_gpu rect in test program.
Browse files Browse the repository at this point in the history
  • Loading branch information
grimfang4 committed Jun 1, 2016
1 parent 51f588e commit 034d753
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/main.c
Expand Up @@ -33,7 +33,7 @@ void draw_rect(FC_Rect rect, SDL_Color color)
void fill_rect(FC_Rect rect, SDL_Color color)
{
#ifdef SDL_GPU_VERSION_MAJOR
GPU_RectangleFilled(screen, rect.x, rect.y, rect.x + rect.w - 1, rect.y + rect.h - 1, color);
GPU_RectangleFilled(screen, rect.x, rect.y, rect.x + rect.w, rect.y + rect.h, color);
#else
SDL_SetRenderDrawBlendMode(renderer, SDL_BLENDMODE_BLEND);
SDL_SetRenderDrawColor(renderer, color.r, color.g, color.b, color.a);
Expand Down
12 changes: 12 additions & 0 deletions test/test.cbp
Expand Up @@ -55,6 +55,18 @@
<Add directory="../externals/SDL_gpu/lib_windows" />
</Linker>
</Target>
<Target title="Emscripten">
<Option output="test" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Emscripten" />
<Option type="0" />
<Option compiler="emscripten_compiler" />
<Compiler>
<Add option="`sdl2-config --cflags`" />
</Compiler>
<Linker>
<Add option="`sdl2-config --libs`" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
Expand Down

0 comments on commit 034d753

Please sign in to comment.