fix messages (e.g. savestates) anchored to bottom or right of window

This commit is contained in:
zeromus 2012-06-17 23:07:57 +00:00
parent a4cbce89f0
commit 4435b58c0b
1 changed files with 7 additions and 3 deletions

View File

@ -176,6 +176,7 @@ namespace BizHawk.MultiClient
void IBlitter.Open()
{
g = Graphics.FromImage(tempBuffer.PeekBitmap());
ClipBounds = new Rectangle(0, 0, NativeSize.Width, NativeSize.Height);
}
void IBlitter.Close()
@ -200,7 +201,7 @@ namespace BizHawk.MultiClient
//todo
}
Rectangle IBlitter.ClipBounds { get; set; }
public Rectangle ClipBounds { get; set; }
bool RetainedViewportPanelDisposeCallback(Bitmap bmp)
{
@ -291,7 +292,10 @@ namespace BizHawk.MultiClient
public d3d9font font;
}
void IBlitter.Open() {}
void IBlitter.Open()
{
ClipBounds = new Rectangle(0, 0, NativeSize.Width, NativeSize.Height);
}
void IBlitter.Close() {}
private bool Vsync;
@ -319,7 +323,7 @@ namespace BizHawk.MultiClient
return new SizeF(r.Width, r.Height);
}
Rectangle IBlitter.ClipBounds { get; set; }
public Rectangle ClipBounds { get; set; }
public Direct3DRenderPanel(Direct3D direct3D, Control control)
{