mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Gfx: Fix rendering issues in some cases
It seems that Direct2D does not expect the underlying pixel data of the render target to change outside of the target draw commands while the render target exists. As a result, Direct2D may in some cases overwrite changes to the pixel data. This change changes the render target to be (re)created for each batch of Direct2D drawing operations as a temporary solution. As a side effect, a DIB section is now used as the render target bitmap.
This commit is contained in:
@ -363,6 +363,12 @@
|
||||
<ClCompile Include="..\Common\Gfx\CanvasD2D.cpp">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Common\Gfx\WICBitmapDIB.cpp">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\Common\Gfx\WICBitmapLockDIB.cpp">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="ConfigParser.h">
|
||||
@ -629,6 +635,12 @@
|
||||
<ClInclude Include="..\Common\Gfx\CanvasD2D.h">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Common\Gfx\WICBitmapDIB.h">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\Common\Gfx\WICBitmapLockDIB.h">
|
||||
<Filter>Common\Gfx</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="Library.rc">
|
||||
|
Reference in New Issue
Block a user