mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Regenerate VS solution
This commit is contained in:
parent
e7aa9e82eb
commit
f242ea6a2b
3 changed files with 14 additions and 2 deletions
12
VisualC/examples/renderer/20-blending/20-blending.vcxproj
Normal file
12
VisualC/examples/renderer/20-blending/20-blending.vcxproj
Normal 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.
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue