Birunthan Mohanathas
63f5eed742
Fix build bustage caused by 38ec6c3
2013-08-10 13:13:04 +03:00
Birunthan Mohanathas
616f986181
Gfx: Make D2D clip text that overflows the bounding box similarly to GDI+
2013-08-10 12:13:59 +03:00
Birunthan Mohanathas
38ec6c3832
Gfx: Fix incorrect text X-position for StringAlign=Center with D2D
2013-08-10 12:08:15 +03:00
Birunthan Mohanathas
21f5ff1303
Gfx: Fix incorrect text height/width with D2D in some cases due to typo
2013-08-10 12:03:40 +03:00
Birunthan Mohanathas
5fcf4b785d
Gfx: Fix that empty strings have a width and/or height with D2D
2013-08-04 21:46:59 +03:00
Brian Ferguson
1e82a1659f
D2D: Undo recent W/H calculations and revert back to 37fd105
calculations
2013-08-02 15:42:37 -06:00
Brian Ferguson
bb53ddf71c
D2D: Minor tweaks
2013-08-02 14:35:08 -06:00
Brian Ferguson
9d525b1c1a
D2D: More tweaks (partially reverts ccb2731
)
...
Should account for extra padding when #CRLF# is used.
2013-08-02 14:32:07 -06:00
Brian Ferguson
ccb273117a
D2D: Tweaks
2013-08-02 09:54:14 -06:00
Birunthan Mohanathas
a1f15d9adc
Minor tweaks
2013-08-02 14:46:42 +03:00
Birunthan Mohanathas
6b8d8a65d0
Gfx: Suppress int to float conversion warning
2013-07-31 13:15:26 +03:00
Birunthan Mohanathas
3c8c8a1f5e
Gfx: Additional change to 37fd105
2013-07-31 13:12:15 +03:00
Birunthan Mohanathas
37fd105650
Gfx: Add Util::GetAdjustedDWriteTextLayoutMetrics to reduce code duplication
2013-07-31 13:09:48 +03:00
Birunthan Mohanathas
82b8920443
Gfx: Added comment
2013-07-31 12:55:32 +03:00
Brian Ferguson
572f2da0d2
D2D: Tweaks
2013-07-30 17:01:16 -06:00
Birunthan Mohanathas
20cac72e9b
Gfx: Implement GDI+ fallback
2013-07-30 22:57:46 +03:00
Birunthan Mohanathas
44300e2f41
Gfx: Change to use D2D 1.1
2013-07-30 22:38:51 +03:00
Brian Ferguson
12dcf4628a
D2D: Tweaks
2013-07-28 22:33:27 -06:00
Brian Ferguson
2dda00a071
D2D: Tweaks to spacing
2013-07-28 12:01:35 -06:00
Brian Ferguson
6aab840dfb
D2D: Adjusted character spacing for AccurateText=0
2013-07-28 11:20:28 -06:00
Brian Ferguson
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
Brian Ferguson
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
Brian Ferguson
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
Brian Ferguson
96f27fffcb
Reverted 32fc794
and cd35729
2013-07-20 10:09:37 -06:00
Brian Ferguson
f76634055d
Reverted 6e9bc98
due to bug in GDI+ and newline
...
http://rainmeter.net/forum/viewtopic.php?p=89915#p89915
2013-07-16 12:28:05 -06:00
Brian Ferguson
6e9bc98d0b
GDI+: Add trailing whitespace when measuring text (similar to 32fc794
)
2013-07-13 10:16:35 -06:00
Brian Ferguson
cd35729a17
Fixed typo in 32fc794
2013-06-30 00:15:36 -06:00
Brian Ferguson
32fc7948ee
CanvasD2D: Fix for trailing whitespace
...
http://rainmeter.net/forum/viewtopic.php?p=89139#p89139
2013-06-29 23:44:56 -06:00
Birunthan Mohanathas
096023ba6e
Cosmetics
2013-06-14 16:58:53 +03:00
Birunthan Mohanathas
8a086ffdcb
Make unit tests available in Release builds
2013-06-13 21:13:57 +03:00
Birunthan Mohanathas
c5e2a7a2cb
Actually fix running debug projects that use unit testing
2013-06-13 20:52:15 +03:00
Birunthan Mohanathas
d63bb00f94
Revert "Fix running debug projects that use unit testing"
...
This reverts commit ced3dd2
.
2013-06-13 20:23:42 +03:00
Birunthan Mohanathas
ced3dd20ca
Fix running debug projects that use unit testing
2013-06-13 20:17:24 +03:00
Birunthan Mohanathas
a80c905be9
Add tests for StringUtil
2013-06-13 17:01:16 +03:00
Birunthan Mohanathas
516ef1a354
Add tests for MathParser
2013-06-13 17:01:00 +03:00
Birunthan Mohanathas
be3efa7531
Move MathParser to Common
2013-06-13 17:00:24 +03:00
Birunthan Mohanathas
3cebbc6b53
Add Common_Test project and PathUtil_Test.cpp
...
The tests use the new Native Unit Test framework in VS2012.
2013-06-12 23:13:04 +03:00
Birunthan Mohanathas
fed4b080b0
Cosmetics
2013-06-12 23:08:45 +03:00
Birunthan Mohanathas
cd4bf6d17a
Create Common.vcxproj to use files under Common as a static library
2013-06-12 21:54:23 +03:00
Birunthan Mohanathas
d079d13da6
Move path related functions into PathUtil
2013-06-12 21:15:16 +03:00
Birunthan Mohanathas
bdb5605d24
Move RawString.h into Common
2013-05-31 17:34:36 +03:00
Birunthan Mohanathas
1934c5db72
Change NULL to nullptr
2013-05-31 17:28:39 +03:00
Birunthan Mohanathas
da9384cfad
Remove "C" prefix in class names
2013-05-31 17:18:52 +03:00
Birunthan Mohanathas
0f6f6d48e5
Gfx: Minor fixes
2013-05-05 17:34:22 +03:00
Birunthan Mohanathas
e10cdd2a86
Gfx: Minor fix
2013-05-05 13:21:30 +03:00
Birunthan Mohanathas
18d5ee383d
Gfx: Wrap pointers with std::unique_ptr
2013-05-01 14:38:52 +03:00
Birunthan Mohanathas
eb5044b6fb
Gfx: Change COM pointers to use WRL::ComPtr
2013-05-01 14:10:31 +03:00
Birunthan Mohanathas
c7e172f906
Gfx: Fix D2D DrawBitmap when source X/Y is not 0
2013-04-14 18:06:28 +03:00
Birunthan Mohanathas
31d717085e
Gfx: Fix mistakes in b737352
2013-04-13 18:58:24 +03:00
Birunthan Mohanathas
d04bb46009
Gfx: Improve D2D local font support
2013-04-12 19:41:47 +03:00