diff --git a/VisualC/examples/renderer/20-blending/20-blending.vcxproj b/VisualC/examples/renderer/20-blending/20-blending.vcxproj new file mode 100644 index 0000000000..ff89bd3e0d --- /dev/null +++ b/VisualC/examples/renderer/20-blending/20-blending.vcxproj @@ -0,0 +1,12 @@ + + + + {B938A3C0-6C64-4734-B705-ED3642C01B47} + + + + + + + + \ No newline at end of file diff --git a/examples/renderer/06-textures/main b/examples/renderer/06-textures/main deleted file mode 100755 index 25732b6283..0000000000 Binary files a/examples/renderer/06-textures/main and /dev/null differ diff --git a/examples/renderer/20-blending/blending.c b/examples/renderer/20-blending/blending.c index c86b5ced87..ab7b2e84df 100644 --- a/examples/renderer/20-blending/blending.c +++ b/examples/renderer/20-blending/blending.c @@ -167,9 +167,9 @@ SDL_AppResult SDL_AppIterate(void *appstate) for (int i = 0; i < ROWS*COLS; i++) { /* Loop through the panel pixels */ - for (int y = (int)panels[i].y; y < PANEL_SIZE + (int)panels[i].y; y += GRID_SIZE) + for (float y = panels[i].y; y < PANEL_SIZE + panels[i].y; y += GRID_SIZE) { - for (int x = (int)panels[i].x; x < PANEL_SIZE + (int)panels[i].x; x += GRID_SIZE) + for (float x = panels[i].x; x < PANEL_SIZE + panels[i].x; x += GRID_SIZE) { SDL_FRect grid = { x, y, GRID_SIZE, GRID_SIZE }; bool dark = (int)(x/GRID_SIZE + y/GRID_SIZE) % 2;