From 661ffe253d52946016d02b613fc9a66276743339 Mon Sep 17 00:00:00 2001 From: Darth Affe Date: Tue, 14 Jun 2016 22:40:08 +0200 Subject: [PATCH] Removed todo - seems to be ok like this --- Artemis/Artemis/Models/Profiles/ProfileModel.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Artemis/Artemis/Models/Profiles/ProfileModel.cs b/Artemis/Artemis/Models/Profiles/ProfileModel.cs index 858fa5b4f..12c2ed998 100644 --- a/Artemis/Artemis/Models/Profiles/ProfileModel.cs +++ b/Artemis/Artemis/Models/Profiles/ProfileModel.cs @@ -83,9 +83,7 @@ namespace Artemis.Models.Profiles // Remove the clip c.Pop(); } - - //TODO DarthAffe 13.06.2016: This is just to make it work - //It would be better to somehow draw directly but I don't really understand dat visual stuff right now :p + using (Bitmap bmp = ImageUtilities.DrawinVisualToBitmap(visual, keyboardRect)) keyboard.DrawImage(bmp, new PointF(0, 0)); } @@ -206,9 +204,7 @@ namespace Artemis.Models.Profiles // Remove the clip c.Pop(); } - - //TODO DarthAffe 13.06.2016: This is just to make it work - //It would be better to somehow draw directly but I don't really understand dat visual stuff right now :p + using (Bitmap bmp = ImageUtilities.DrawinVisualToBitmap(visual, keyboardRect)) keyboard.DrawImage(bmp, new PointF(0, 0)); }