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:
parent
32271899c3
commit
0f6ef723bf
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue