Now using host frame buffer and sending the whole frame upon swap buffers.
BitArray saved the day to implement proper BitBlit.
Any font now drawing nicely.
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|Win32">
5 <Configuration>Debug</Configuration>
6 <Platform>Win32</Platform>
7 </ProjectConfiguration>
8 <ProjectConfiguration Include="Release|Win32">
9 <Configuration>Release</Configuration>
10 <Platform>Win32</Platform>
11 </ProjectConfiguration>
13 <PropertyGroup Label="Globals">
14 <ProjectGuid>{08769AC3-785A-4DDC-BFC7-1775414B7AB7}</ProjectGuid>
15 <RootNamespace>testgui</RootNamespace>
16 <Keyword>Win32Proj</Keyword>
18 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
20 <ConfigurationType>Application</ConfigurationType>
21 <PlatformToolset>v110</PlatformToolset>
22 <CharacterSet>Unicode</CharacterSet>
23 <WholeProgramOptimization>true</WholeProgramOptimization>
25 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
26 <ConfigurationType>Application</ConfigurationType>
27 <PlatformToolset>v110</PlatformToolset>
28 <CharacterSet>Unicode</CharacterSet>
30 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
31 <ImportGroup Label="ExtensionSettings">
33 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
34 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
36 <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
37 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
39 <PropertyGroup Label="UserMacros" />
41 <_ProjectFileVersion>11.0.61030.0</_ProjectFileVersion>
43 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
44 <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
45 <IntDir>$(Configuration)\</IntDir>
46 <LinkIncremental>true</LinkIncremental>
48 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
49 <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
50 <IntDir>$(Configuration)\</IntDir>
51 <LinkIncremental>false</LinkIncremental>
53 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
55 <Optimization>Disabled</Optimization>
56 <AdditionalIncludeDirectories>.\inc;..\hidapi-externals\fox\include;..\hidapi\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
57 <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
58 <MinimalRebuild>true</MinimalRebuild>
59 <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
60 <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
62 <WarningLevel>Level3</WarningLevel>
63 <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
66 <AdditionalDependencies>setupapi.lib;fox-1.6.lib;%(AdditionalDependencies)</AdditionalDependencies>
67 <OutputFile>$(TargetPath)</OutputFile>
68 <AdditionalLibraryDirectories>..\hidapi\hidapi\objfre_wxp_x86\i386;..\hidapi-externals\fox\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
69 <GenerateDebugInformation>true</GenerateDebugInformation>
70 <SubSystem>Windows</SubSystem>
71 <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
72 <TargetMachine>MachineX86</TargetMachine>
77 </ItemDefinitionGroup>
78 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
80 <Optimization>MaxSpeed</Optimization>
81 <IntrinsicFunctions>true</IntrinsicFunctions>
82 <AdditionalIncludeDirectories>..\..\hidapi-externals\fox\include;..\hidapi;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
83 <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
84 <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
85 <FunctionLevelLinking>true</FunctionLevelLinking>
87 <WarningLevel>Level3</WarningLevel>
88 <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
91 <AdditionalDependencies>setupapi.lib;fox-1.6.lib;%(AdditionalDependencies)</AdditionalDependencies>
92 <OutputFile>$(ProjectName).exe</OutputFile>
93 <AdditionalLibraryDirectories>..\hidapi\objfre_wxp_x86\i386;..\..\hidapi-externals\fox\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
94 <GenerateDebugInformation>true</GenerateDebugInformation>
95 <SubSystem>Windows</SubSystem>
96 <OptimizeReferences>true</OptimizeReferences>
97 <EnableCOMDATFolding>true</EnableCOMDATFolding>
98 <EntryPointSymbol>mainCRTStartup</EntryPointSymbol>
99 <TargetMachine>MachineX86</TargetMachine>
104 </ItemDefinitionGroup>
106 <ClCompile Include="..\hidapi\windows\hid.c" />
107 <ClCompile Include="src\BitArray.cpp" />
108 <ClCompile Include="src\FutabaVfd.cpp" />
109 <ClCompile Include="src\HidDevice.cpp" />
110 <ClCompile Include="src\Main.cpp" />
111 <ClCompile Include="src\test.cpp" />
114 <ClInclude Include="..\hidapi\hidapi\hidapi.h" />
115 <ClInclude Include="inc\BitArray.h" />
116 <ClInclude Include="inc\FutabaVfd.h" />
117 <ClInclude Include="inc\HidDevice.h" />
118 <ClInclude Include="inc\HidReport.h" />
119 <ClInclude Include="inc\MainWindow.h" />
121 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
122 <ImportGroup Label="ExtensionTargets">