fix a style violation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28507 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1166,17 +1166,14 @@ ShowImageView::BeginDrag(BPoint sourcePoint)
|
|||||||
// avoid flickering of dragged bitmap caused by drawing into the window
|
// avoid flickering of dragged bitmap caused by drawing into the window
|
||||||
AnimateSelection(false);
|
AnimateSelection(false);
|
||||||
// only use a transparent bitmap on selections less than 400x400 (taking into account zooming)
|
// only use a transparent bitmap on selections less than 400x400 (taking into account zooming)
|
||||||
if ((fSelectionRect.Width() * fZoom) < 400.0 && (fSelectionRect.Height() * fZoom) < 400.0)
|
if ((fSelectionRect.Width() * fZoom) < 400.0 && (fSelectionRect.Height() * fZoom) < 400.0) {
|
||||||
{
|
|
||||||
sourcePoint -= fSelectionRect.LeftTop();
|
sourcePoint -= fSelectionRect.LeftTop();
|
||||||
sourcePoint.x *= fZoom;
|
sourcePoint.x *= fZoom;
|
||||||
sourcePoint.y *= fZoom;
|
sourcePoint.y *= fZoom;
|
||||||
// DragMessage takes ownership of bitmap
|
// DragMessage takes ownership of bitmap
|
||||||
DragMessage(&drag, bitmap, B_OP_ALPHA, sourcePoint);
|
DragMessage(&drag, bitmap, B_OP_ALPHA, sourcePoint);
|
||||||
bitmap = NULL;
|
bitmap = NULL;
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
delete bitmap;
|
delete bitmap;
|
||||||
// Offset and scale the rect
|
// Offset and scale the rect
|
||||||
BRect rect(fSelectionRect);
|
BRect rect(fSelectionRect);
|
||||||
|
|||||||
Reference in New Issue
Block a user