Commit Graph

2303 Commits

Author SHA1 Message Date
Birunthan Mohanathas
4c41310e5f Language: Update strings 2013-10-13 14:54:01 +03:00
Birunthan Mohanathas
d930b71bd9 Language: Update strings 2013-10-13 14:44:09 +03:00
Birunthan Mohanathas
67948705f4 Gfx: Improve D2D compatibility with GDI+ with zero height text when calculating lines 2013-10-08 20:15:36 +03:00
Brian Ferguson
35f2e1591e Gfx: Fix non-zero height for empty strings with D2D
http://rainmeter.net/forum/viewtopic.php?p=92801
2013-10-08 20:10:57 +03:00
Birunthan Mohanathas
15c65384f6 Gfx: Try to load D2D only on Win7+ 2013-10-06 19:14:32 +03:00
spx
358b4fe36a Language: Update translation (Japanese) 2013-10-07 00:30:02 +09:00
Birunthan Mohanathas
06cc2a3cf0 Language: Update translations 2013-10-06 18:17:14 +03:00
Birunthan Mohanathas
6c6ec771b0 Move new strings into language headers 2013-10-06 17:54:17 +03:00
Birunthan Mohanathas
9085f2ae20 SkinInstaller: Remove "UseD2D" in installed themes 2013-10-06 17:25:03 +03:00
Birunthan Mohanathas
6248f07634 Disable skin menu "Use D2D rendering" item if D2D is globally disabled 2013-10-06 17:12:19 +03:00
Birunthan Mohanathas
ded19a42fa Enable D2D by default 2013-10-06 17:08:11 +03:00
Birunthan Mohanathas
2fb733ef75 Gfx: Remove __D2DParams 2013-10-06 17:07:00 +03:00
Birunthan Mohanathas
6df7d5d509 Add "Use D2D rendering" option to skin context menu 2013-10-06 10:57:24 +03:00
Birunthan Mohanathas
21d9c0698f Gfx: Additional changes to d003db6 2013-09-29 17:57:21 +03:00
Birunthan Mohanathas
d003db6531 Gfx: Add __D2DParams option to allow testing D2D text rendering options 2013-09-29 11:28:28 +03:00
Birunthan Mohanathas
c1aa191235 Gfx: Use GDI+ instead of D2D when drawing scaled images 2013-09-28 17:51:42 +03:00
jsmorley
2029cea23f Revert "Added #NBSP# built-in variable to support using a Unicode no-break space in strings."
This reverts commit 73069b692f.

Reverted due to some risk of issues when used in Lua when the .lua file is not encoded and the user's local code page does not support the ANSI "no-break space".
2013-09-22 10:26:58 -04:00
jsmorley
73069b692f Added #NBSP# built-in variable to support using a Unicode no-break space in strings. 2013-09-22 07:53:17 -04:00
Birunthan Mohanathas
7558666b13 Script: Add default value support for SKIN:GetVariable 2013-09-19 17:16:26 +03:00
Birunthan Mohanathas
5fd98509cf Script: Fix that default value is not used in Meter:GetOption 2013-09-19 17:07:47 +03:00
Birunthan Mohanathas
08eb662e1f Add #ROOTCONFIG# variable 2013-09-15 15:05:06 +03:00
Birunthan Mohanathas
8b68092cf1 Tweak some log messages to remove redundant info 2013-09-14 12:57:33 +03:00
Brian Ferguson
b0423cd3ff CommandHandler: Fixed typo in eca5dd0 2013-09-12 11:44:49 -06:00
Brian Ferguson
e53b984bde Cosmetics 2013-09-01 00:01:50 -06:00
Brian Ferguson
e62a1aa262 Fixed issue where the width/height of a meter would not update when using the Padding option. 2013-08-31 23:58:12 -06:00
Brian Ferguson
df84ba961c Cosmetics 2013-08-25 22:47:20 -06:00
Brian Ferguson
fb059da295 Added "Clear" button to About dialog (Log tab) 2013-08-25 12:09:54 -06:00
Brian Ferguson
eca5dd0010 Added optional parameters to the "!Manage" bang for the "Skins" tab.
Usage: !Manage Skins Config File (both "Config" and "File" are optional).
Example: !Manage Skins "illustro\Clock" "Clock.ini"

To use the "File" parameter, you must specify a "Config" parameter as well.
2013-08-25 11:28:15 -06:00
Brian Ferguson
dfc804d50e MeasureCalc: Allow for LowBound to equal HighBound. If LowBound is greater then HighBound, set HighBound equal to LowBound (and show error). 2013-08-19 14:41:45 -06:00
Birunthan Mohanathas
b0c4f83424 Minor tweaks 2013-08-17 11:16:01 +03:00
Brian Ferguson
cd140ff0f6 MeasureCalc: Only report "HighBound" error message after initial update 2013-08-16 13:19:22 -06:00
Brian Ferguson
9c2d75ce69 Removed test code from a3a464b 2013-08-16 13:00:53 -06:00
Brian Ferguson
a3a464b9cf Fixed resetting of internal bounds in f414b5f 2013-08-16 12:58:16 -06:00
Brian Ferguson
f414b5feba MeasureCalc: Added "UniqueRandom" option. When "1", random numbers are only used once within the range {LowBound, HighBound}.
Also updated the URNG (Uniform Random Number Generator) engine to the C++11 library <random>.
2013-08-15 18:12:36 -06:00
Birunthan Mohanathas
61bcb92dee Gfx: Make D2D draw lines if they will be clipped by at most 2 pixels 2013-08-12 18:52:51 +03:00
Birunthan Mohanathas
db9e220207 Gfx: Minor tweaks 2013-08-12 18:51:27 +03:00
Birunthan Mohanathas
12e0564f3e Gfx: Avoid clipping with D2D when not needed 2013-08-12 18:50:24 +03:00
Birunthan Mohanathas
a8467674fe Add missing file in 79b9af3 2013-08-11 14:31:16 +03:00
Birunthan Mohanathas
79b9af3320 Common: Add UnitTest.h 2013-08-11 14:29:07 +03:00
Birunthan Mohanathas
0afbdac9fe Gfx: Add some tests for TextFormatD2D 2013-08-11 14:12:23 +03:00
Birunthan Mohanathas
176a9414f5 Gfx: Make D2D acknowledge trailing whitespace followed by a NBSP/MMSP
This hacky workaround makes D2D behavior consistent with GDI+.
2013-08-11 12:11:59 +03:00
Birunthan Mohanathas
180adbc759 Gfx: Fix text Y position for D2D with vertical Center/Bottom alignments 2013-08-11 11:42:23 +03:00
Birunthan Mohanathas
027feabf86 Gfx: Make bottom overhanging characters visible with D2D 2013-08-10 17:01:48 +03:00
Birunthan Mohanathas
b8333dc66d Gfx: Fix clipping with D2D when a transformation has been applied 2013-08-10 16:58:30 +03:00
Birunthan Mohanathas
42e8d5ee22 Gfx: Additional changes to 56218f7 2013-08-10 15:29:09 +03:00
Birunthan Mohanathas
56218f7af4 Gfx: Improve line trimming with D2D when one line is visible 2013-08-10 15:26:50 +03:00
Birunthan Mohanathas
34abccc29b Gfx: Check for errors in TextFormatD2D::SetProperties 2013-08-10 15:25:36 +03:00
Birunthan Mohanathas
2e2ced7403 Gfx: Additional change to 6e04fd9 2013-08-10 14:14:02 +03:00
Birunthan Mohanathas
aa4c4a6dfc Gfx: Make AccurateText=1 more consistent with GDI+ for D2D when a newline character is the last character of the text 2013-08-10 13:58:54 +03:00
Birunthan Mohanathas
6e04fd983f Gfx: Make AccurateText=0 more consistent with GDI+ for D2D
The height is now based on a formula that should be exactly equal to that provided by GDI+. The padding should now be equal on the left and right sides now. There may be some discrepancies in overall width, but it should always be reasonably to close to GDI+.

In addition, this makes D2D behavior match GDI+ when a newline character is the last character of the text.
2013-08-10 13:54:53 +03:00