Even if Adi really don't like it, it's perfectly okay to resize or move a layer before
adding it to its parent. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14784 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
* DarkWyrm <[email protected]>
|
||||
* Adi Oanca <[email protected]>
|
||||
* Stephan Aßmus <[email protected]>
|
||||
*
|
||||
* Description:
|
||||
* Class used for tracking drawing context and screen clipping.
|
||||
* One Layer per client BWindow (WindowBorder) and each BView therein.
|
||||
*/
|
||||
|
||||
/** Class used for tracking drawing context and screen clipping.
|
||||
* One Layer per client BWindow (WindowBorder) and each BView therein.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
@@ -39,6 +39,7 @@
|
||||
# define STRACE(x) ;
|
||||
#endif
|
||||
|
||||
|
||||
Layer::Layer(BRect frame, const char* name, int32 token,
|
||||
uint32 resize, uint32 flags, DrawingEngine* driver)
|
||||
:
|
||||
@@ -565,7 +566,7 @@ Layer::MoveBy(float x, float y)
|
||||
{
|
||||
STRACE(("Layer(%s)::MoveBy() START\n", Name()));
|
||||
if (!fParent) {
|
||||
CRITICAL("ERROR: in Layer::MoveBy()! - No parent!\n");
|
||||
fFrame.OffsetBy(x, y);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user