Commit Graph

2 Commits

Author SHA1 Message Date
Brian Ferguson
d0704a69d0 Cosmetics: Fixes VS2012 syntax highlighting 2013-04-05 15:07:51 -06:00
Birunthan Mohanathas
5f03d7b235 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.
2013-03-26 21:29:05 +02:00