Regenerate VS solution

This commit is contained in:
Ahmed 2026-05-20 03:46:47 +01:00
parent e7aa9e82eb
commit f242ea6a2b
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="Globals">
<ProjectGuid>{B938A3C0-6C64-4734-B705-ED3642C01B47}</ProjectGuid>
</PropertyGroup>
<Import Project="$(SolutionDir)\examples\Examples.props" />
<ItemGroup>
<None Include="$(SolutionDir)\..\examples\renderer\20-blending\README.txt" />
<ClCompile Include="$(SolutionDir)\..\examples\renderer\20-blending\blending.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>

Binary file not shown.

View file

@ -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;