From 2e177fdfa37360798bd6d242fdced89651b4aa77 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 27 Aug 2016 07:10:15 +0300 Subject: [PATCH] visual studio project for the SDL backend --- .gitignore | 5 +++ dosdemo.sln | 22 +++++++++++ dosdemo.vcxproj | 97 +++++++++++++++++++++++++++++++++++++++++++++++ dosdemo.vcxproj.filters | 34 +++++++++++++++++ src/demo.c | 3 ++ 5 files changed, 161 insertions(+) create mode 100644 dosdemo.sln create mode 100644 dosdemo.vcxproj create mode 100644 dosdemo.vcxproj.filters diff --git a/.gitignore b/.gitignore index 8c14050..201c530 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,8 @@ *.LNK *.log *.LOG +Debug +Release +*.suo +*sdf +demo diff --git a/dosdemo.sln b/dosdemo.sln new file mode 100644 index 0000000..5066871 --- /dev/null +++ b/dosdemo.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.40629.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dosdemo", "dosdemo.vcxproj", "{15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F}.Debug|Win32.ActiveCfg = Debug|Win32 + {15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F}.Debug|Win32.Build.0 = Debug|Win32 + {15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F}.Release|Win32.ActiveCfg = Release|Win32 + {15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/dosdemo.vcxproj b/dosdemo.vcxproj new file mode 100644 index 0000000..404de16 --- /dev/null +++ b/dosdemo.vcxproj @@ -0,0 +1,97 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {15AB3B8C-B8BE-42ED-9DBC-EAE9C8FB9B9F} + Win32Proj + dosdemo + + + + Application + true + v120 + MultiByte + + + Application + false + v120 + true + MultiByte + + + + + + + + + + + + + true + + + false + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + $(ProjectDir)\src;$(ProjectDir)\src\sdl;%(AdditionalIncludeDirectories) + 4996;4244 + + + Console + true + SDL.lib;SDLmain.lib;%(AdditionalDependencies) + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions) + $(ProjectDir)\src;$(ProjectDir)\src\sdl;%(AdditionalIncludeDirectories) + 4996;4244 + + + Console + true + true + true + SDL.lib;SDLmain.lib;%(AdditionalDependencies) + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dosdemo.vcxproj.filters b/dosdemo.vcxproj.filters new file mode 100644 index 0000000..2a33941 --- /dev/null +++ b/dosdemo.vcxproj.filters @@ -0,0 +1,34 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx;h;inl + + + {75ea1193-5afc-4dfe-ad41-ee85b47b7d35} + + + + + src + + + src + + + src + + + src\sdl + + + + + src + + + src + + + \ No newline at end of file diff --git a/src/demo.c b/src/demo.c index fe0c2c4..a9611f6 100644 --- a/src/demo.c +++ b/src/demo.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "demo.h" #include "screen.h" @@ -21,6 +22,8 @@ int demo_init(int argc, char **argv) } scr_change(scr_lookup("tunnel"), 4000); + /* clear the framebuffer at least once */ + memset(fb_pixels, 0, fb_width * fb_height * fb_bpp / CHAR_BIT); return 0; } -- 1.7.10.4