aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-02 11:32:11 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-02 11:32:11 -0400
commit7dae0069d65883d8b2a5ba635991354eb395b7c6 (patch)
tree21c7b523f888f6bbec528534a6d521473bab4dbd /MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs
parentf87454336e0bd1f5cb21353a2da116eacfd1adb9 (diff)
added new image params & GameSystem constants
Diffstat (limited to 'MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs b/MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs
index 355824458..e2f5b6129 100644
--- a/MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs
+++ b/MediaBrowser.Server.Implementations/Drawing/PercentPlayedDrawer.cs
@@ -10,9 +10,9 @@ namespace MediaBrowser.Server.Implementations.Drawing
private const int FontSize = 30;
private readonly CultureInfo _usCulture = new CultureInfo("en-US");
- public void Process(Graphics graphics, Size imageSize, int percent)
+ public void Process(Graphics graphics, Size imageSize, int percent, int rightOffset)
{
- var x = imageSize.Width - IndicatorWidth;
+ var x = imageSize.Width - IndicatorWidth + rightOffset;
using (var backdroundBrush = new SolidBrush(Color.FromArgb(225, 102, 192, 16)))
{
@@ -20,7 +20,7 @@ namespace MediaBrowser.Server.Implementations.Drawing
var text = string.Format("{0}%", percent.ToString(_usCulture));
- x = imageSize.Width - (percent < 10 ? 66 : 75);
+ x = imageSize.Width - (percent < 10 ? 66 : 75) + rightOffset;
using (var font = new Font(FontFamily.GenericSansSerif, FontSize, FontStyle.Regular, GraphicsUnit.Pixel))
{