Commit Graph

33 Commits

Author SHA1 Message Date
1e82a1659f D2D: Undo recent W/H calculations and revert back to 37fd105 calculations 2013-08-02 15:42:37 -06:00
9d525b1c1a D2D: More tweaks (partially reverts ccb2731)
Should account for extra padding when #CRLF# is used.
2013-08-02 14:32:07 -06:00
6b8d8a65d0 Gfx: Suppress int to float conversion warning 2013-07-31 13:15:26 +03:00
3c8c8a1f5e Gfx: Additional change to 37fd105 2013-07-31 13:12:15 +03:00
37fd105650 Gfx: Add Util::GetAdjustedDWriteTextLayoutMetrics to reduce code duplication 2013-07-31 13:09:48 +03:00
572f2da0d2 D2D: Tweaks 2013-07-30 17:01:16 -06:00
20cac72e9b Gfx: Implement GDI+ fallback 2013-07-30 22:57:46 +03:00
44300e2f41 Gfx: Change to use D2D 1.1 2013-07-30 22:38:51 +03:00
12dcf4628a D2D: Tweaks 2013-07-28 22:33:27 -06:00
2dda00a071 D2D: Tweaks to spacing 2013-07-28 12:01:35 -06:00
6aab840dfb D2D: Adjusted character spacing for AccurateText=0 2013-07-28 11:20:28 -06:00
52b5e2584a D2D: Removed centering of text within W/H (from 481442b) due to conflict with different alignments and a meter's defined W/H. 2013-07-28 01:10:19 -06:00
481442bc19 D2D: Tweaked formula that calculates the width/height of text using AccurateText=0 to better match GDI+. Also centers the text inside the adjusted width/height. 2013-07-28 00:00:22 -06:00
b27bf1ee63 Added "AccurateText" option [Rainmeter] section of a skin.
When AccurateText=0 (default) and UseD2D=0, inaccurate GDI+ measuring of text is used
When AccurateText=1 and UseD2D=0, Accurate measuring occurs similar to D2D
When AccurateText=0 and UseD2D=1, D2D adds padding to the text similar to GDI+
When AccurateText=1 and UseD2D=1, Accurate measuring occurs using D2D
2013-07-25 14:53:02 -06:00
96f27fffcb Reverted 32fc794 and cd35729 2013-07-20 10:09:37 -06:00
cd35729a17 Fixed typo in 32fc794 2013-06-30 00:15:36 -06:00
32fc7948ee CanvasD2D: Fix for trailing whitespace
http://rainmeter.net/forum/viewtopic.php?p=89139#p89139
2013-06-29 23:44:56 -06:00
18d5ee383d Gfx: Wrap pointers with std::unique_ptr 2013-05-01 14:38:52 +03:00
eb5044b6fb Gfx: Change COM pointers to use WRL::ComPtr 2013-05-01 14:10:31 +03:00
c7e172f906 Gfx: Fix D2D DrawBitmap when source X/Y is not 0 2013-04-14 18:06:28 +03:00
ad9149b143 Gfx: Move WIC files to Util 2013-04-12 17:09:42 +03:00
3827353c08 Gfx: Implement DWrite interfaces required for loading fonts 2013-04-12 17:05:21 +03:00
53c6966819 Gfx: Tweaks 2013-04-08 17:21:47 +03:00
12bd890aef Gfx: Cosmetics 2013-04-07 14:32:41 +03:00
2f8f67e2cf Gfx: Make D2D font family name handling more consistent with GDI+ 2013-04-07 14:30:50 +03:00
d0704a69d0 Cosmetics: Fixes VS2012 syntax highlighting 2013-04-05 15:07:51 -06:00
59b3dea21c Gfx: Added support for TransformationMatrix and Angle (for String meters) 2013-04-05 02:35:20 -06:00
e5100d9a9f Gfx: Make text rendering with D2D more efficient by reusing layout 2013-03-28 15:51:12 +02:00
056277ce4f Gfx: Tweaks 2013-03-28 14:45:10 +02:00
5bf776090d Gfx: Avoid creating D2D render target when not necessary 2013-03-28 14:44:43 +02:00
c6374f7c12 Minor tweaks and fixes 2013-03-28 14:26:55 +02:00
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
82970d1cce Gfx: Add initial work
Gfx provides support for rendering with both Direct2D and GDI+.
2013-03-25 17:37:20 +02:00