It is currently March 19th, 2024, 6:53 am

[D2D][Fixed] Likely Transformation Matrix Bug

Backwards compatibility issues related to the conversion of Rainmeter to D2D.
Post Reply
User avatar
Mor3bane
Posts: 944
Joined: May 7th, 2016, 7:32 am
Contact:

[D2D][Fixed] Likely Transformation Matrix Bug

Post by Mor3bane »

Rainmeter-4.3-r3236-D2D

So this is what my line meter looks like. It uses a Transformation Matrix to "spread out" the lines so that the behaviour is more visible:
Untitled.jpg
It 'was' a single defined line, now it is showing the added width the Transformation Matrix adds. The code is the same before and after the Alpha was installed.

Code: Select all

[MeasureNetIn]
Measure=NetIn
UpdateDivider=5

[MeasureNetOut]
Measure=NetOut
UpdateDivider=5

[MainMesh]
Meter=Image
ImageName=#@#Mesh.png
AntiAlias=1
Y=40
X=40
W=259
H=259

[MeterNetIn]
Meter=String
MeasureName=MeasureNetIn
x=169
Y=102
StringAlign=Center
FontColor=#Goth#
FontSize=18
FontFace=Astronaut
NumOfDecimals=2
AutoScale=1
Text="%1bs"
AntiAlias=1
DynamicVariables=1

[in.txt]
Meter=STRING
x=169
Y=75
FontColor=#Goth#
FontSize=15
StringAlign=Center
FontFace=Astronaut
AntiAlias=1
Text="Download:"
DynamicVariables=1

[MeterNetOut]
Meter=String
MeasureName=MeasureNetOut
x=169
Y=219
FontColor=#Color#
StringAlign=Center
FontSize=18
FontFace=Astronaut
NumOfDecimals=1
AutoScale=1
Text="%1bs"
AntiAlias=1
DynamicVariables=1

[out.txt]
Meter=STRING
x=169
Y=196
FontColor=#Color#
FontSize=15
StringAlign=Center
FontFace=Astronaut
AntiAlias=1
Text="Upload:"
DynamicVariables=1

[MeterGraph2]
Meter=Line
MeasureName=MeasureNetOut
MeasureName2=MeasureNetIn
X=1
Y=74
W=21
H=80
LineCount=2
LineColor=#Color#
LineColor2=#Goth#
SolidColor=0,0,0,1
AntiAlias=1
AutoScale=1
UpdateDivider=5
TransformationMatrix=10; 0; 0; 0.9; 58; 53

[MainCover]
Meter=Image
ImageName=#@#Ring.png
AntiAlias=1
Y=40
X=40
W=258
H=258
DynamicVariables=1
Attachments
Xformed Net Lines_xx.xx.rmskin
(75.11 KiB) Downloaded 94 times
User avatar
Brian
Developer
Posts: 2672
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Likely Transformation Matrix Bug

Post by Brian »

This has been fixed as of r3247. Thanks for reporting!

(Sorry it took so long to fix.)

-Brian
User avatar
Mor3bane
Posts: 944
Joined: May 7th, 2016, 7:32 am
Contact:

Re: [Fixed] Likely Transformation Matrix Bug

Post by Mor3bane »

Ah, thanks for the update.

juat happened to update recently, and did not even notice it was fixed - but it IS Fixted :rofl:
User avatar
Brian
Developer
Posts: 2672
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: [Fixed with new option] Likely Transformation Matrix Bug

Post by Brian »

Good and bad news with the "fix" for this...

The Bad:
Unfortunately, we had to revert the "fix" we did to make the line(s) draw at the defined LineWidth for Line meters. Another issue came up here: https://forum.rainmeter.net/viewtopic.php?f=123&t=29634#p153567

For some reason (probably something internal to GDI+), your example of TransformationMatrix and others I tried when debugging this issue caused GDI+ to render the line's width at the defined LineWidth, instead of the "transformed" width (applied by TransformationMatrix). Using a more basic example, like the one provided in the link above, TransformationMatrix was clearly being applied correctly. Since, in most cases, TransformationMatrix can modify what a meter does draw, we decided to revert the changes that forces the line to be drawn at the defined LineWidth.

The Good:
As described here, since GDI+ is giving us inconsistent behavior, we have decided to make a new option called "TransformStroke" that will control this behavior.

This means you may have to add this option to the Line meter(s) of older skins if they are affected from this issue. Simply add the following option to the meter: TransformStroke=Fixed

-Brian
User avatar
jsmorley
Developer
Posts: 22632
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: [Fixed with new option] Likely Transformation Matrix Bug

Post by jsmorley »

New beta r3260 is available.
Post Reply