View Single Post
Old 2008-04-07, 17:10   #9 (permalink)
escabe
Portal User
 
Join Date: Jul 2007
Location: Eindhoven
Age: 25
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

I noticed when using this plugin that it does not take the parameters of the UI Calibration (for people with overscan) into account . Therefore I suggest the following fix in WMPOSD.cs (revision r8) in the function protected void Parent_LocationOrSizeChanged(object sender, EventArgs e)

change
Code:
this.Location = new Point((int)(_parent.Location.X + _parent.Size.Width * (1.0 - w) / 2), (int)(_parent.Location.Y + yp));
this.Size = new Size((int)(_parent.Size.Width * w), (int)(_parent.Size.Height * h));
into
Code:
this.Location = new Point((int)(_parent.Location.X + GUIGraphicsContext.OffsetX + _parent.Size.Width * GUIGraphicsContext.ZoomHorizontal * (1.0 - w) / 2), (int)(_parent.Location.Y + GUIGraphicsContext.OffsetY + yp));
this.Size = new Size((int)(_parent.Size.Width * GUIGraphicsContext.ZoomHorizontal * w), (int)(_parent.Size.Height * GUIGraphicsContext.ZoomVertical * h));
(I've added WMPOSD.cs with this fix as attachment to this post)
Attached Files
File Type: zip WMPOSD.zip (2.8 KB, 7 views)
escabe is offline   Reply With Quote