tastudio: fix bug with ScreenshotPopupControl's alpha channel.

it was forgetting to discard alpha, and when creating a bitmap it dropped anything but lua hud, since it does have alpha bits that nothing else has, and with no lua hud involved, it showed all normally, since it didn't have to drop colors with zero alpha. lol.
This commit is contained in:
feos 2015-12-02 20:15:12 +03:00
parent 32271899c3
commit 0f6ef723bf
2 changed files with 3 additions and 4 deletions

View File

@ -189,7 +189,7 @@ namespace BizHawk.Client.EmuHawk
}
}
public bool EditMarkerPopUp(TasMovieMarker marker)
public void EditMarkerPopUp(TasMovieMarker marker)
{
var markerFrame = marker.Frame;
InputPrompt i = new InputPrompt
@ -209,9 +209,7 @@ namespace BizHawk.Client.EmuHawk
{
marker.Message = i.PromptText;
UpdateValues();
return true;
}
return false;
}
public void UpdateValues()

View File

@ -19,7 +19,7 @@ namespace BizHawk.Client.EmuHawk
public ScreenshotPopupControl()
{
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
//SetStyle(ControlStyles.SupportsTransparentBackColor, true);
//SetStyle(ControlStyles.Opaque, true);
//this.BackColor = Color.Transparent;
@ -28,6 +28,7 @@ namespace BizHawk.Client.EmuHawk
protected override void OnPaint(PaintEventArgs e)
{
Branch.OSDFrameBuffer.DiscardAlpha();
var bitmap = Branch.OSDFrameBuffer.ToSysdrawingBitmap();
e.Graphics.DrawImage(bitmap, new Rectangle(0, 0, Width, DrawingHeight));
if (UserPadding > 0)