From 45c2e6b8f33d50d696a380a0fd9413511b3d33a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 7 May 2008 21:13:09 +0000 Subject: [PATCH] Use the view's Bounds() as target rect when drawing, so if the source is not QVGA it's stretched instead of just clipped. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25357 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/codycam/VideoConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/codycam/VideoConsumer.cpp b/src/apps/codycam/VideoConsumer.cpp index 3bf240251b..29cf8a7eaa 100644 --- a/src/apps/codycam/VideoConsumer.cpp +++ b/src/apps/codycam/VideoConsumer.cpp @@ -572,7 +572,7 @@ VideoConsumer::HandleEvent(const media_timed_event* event, bigtime_t lateness, *p = (*p >> 3) & 0x1f1f1f1f; } - fView->DrawBitmap(fBitmap[index]); + fView->DrawBitmap(fBitmap[index], fView->Bounds()); fWindow->Unlock(); } }