fix precendence error (== binds tighter than &)

add new samples to solution



git-svn-id: http://skia.googlecode.com/svn/trunk@1240 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2011-05-04 14:43:40 +00:00
parent 7a253379e7
commit c92545145d
2 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void SkWriter32::reset() {
void SkWriter32::reset(void* block, size_t size) {
this->reset();
SkASSERT(0 == (fSingleBlock - (char*)0) & 3); // need 4-byte alignment
SkASSERT(0 == ((fSingleBlock - (char*)0) & 3)); // need 4-byte alignment
fSingleBlock = (char*)block;
fSingleBlockSize = (size & ~3);
}

View File

@ -261,8 +261,10 @@
<ClCompile Include="..\..\samplecode\SampleBlur.cpp" />
<ClCompile Include="..\..\samplecode\SampleCamera.cpp" />
<ClCompile Include="..\..\samplecode\SampleCircle.cpp" />
<ClCompile Include="..\..\samplecode\SampleClamp.cpp" />
<ClCompile Include="..\..\samplecode\SampleComplexClip.cpp" />
<ClCompile Include="..\..\samplecode\SampleCull.cpp" />
<ClCompile Include="..\..\samplecode\SampleDash.cpp" />
<ClCompile Include="..\..\samplecode\SampleDither.cpp" />
<ClCompile Include="..\..\samplecode\SampleDitherBitmap.cpp" />
<ClCompile Include="..\..\samplecode\SampleDraw.cpp" />