Fixed webcam-image-aspect on ScreenProfiles.
This commit is contained in:
1 parent
3232a1e989
commit
bad6b27245
1 file changed
+2
-4
@@ -314,11 +314,9 @@ namespace Vocaluxe.Screens
|
|||||||
{
|
{
|
||||||
if (_Snapshot == null)
|
if (_Snapshot == null)
|
||||||
CWebcam.GetFrame(ref _WebcamTexture);
|
CWebcam.GetFrame(ref _WebcamTexture);
|
||||||
_Statics[_StaticAvatar].Texture = _WebcamTexture;
|
|
||||||
|
|
||||||
RectangleF bounds = new RectangleF(_WebcamTexture.Rect.X, _WebcamTexture.Rect.Y, _WebcamTexture.Rect.W, _WebcamTexture.Rect.H);
|
_Statics[_StaticAvatar].Aspect = EAspect.Crop;
|
||||||
RectangleF rect = new RectangleF(0f, 0f, _WebcamTexture.Rect.W, _WebcamTexture.Rect.H);
|
_Statics[_StaticAvatar].Texture = _WebcamTexture;
|
||||||
CHelper.SetRect(bounds, out rect, rect.Width / rect.Height, EAspect.Crop);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_Statics[_StaticAvatar].Texture = CProfiles.Avatars[avatarNr].Texture;
|
_Statics[_StaticAvatar].Texture = CProfiles.Avatars[avatarNr].Texture;
|
||||||
|
|||||||
Reference in new issue
Block a user