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]>
|
* DarkWyrm <[email protected]>
|
||||||
* Adi Oanca <[email protected]>
|
* Adi Oanca <[email protected]>
|
||||||
* Stephan Aßmus <[email protected]>
|
* Stephan Aßmus <[email protected]>
|
||||||
*
|
*/
|
||||||
* Description:
|
|
||||||
* Class used for tracking drawing context and screen clipping.
|
/** Class used for tracking drawing context and screen clipping.
|
||||||
* One Layer per client BWindow (WindowBorder) and each BView therein.
|
* One Layer per client BWindow (WindowBorder) and each BView therein.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -39,6 +39,7 @@
|
|||||||
# define STRACE(x) ;
|
# define STRACE(x) ;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Layer::Layer(BRect frame, const char* name, int32 token,
|
Layer::Layer(BRect frame, const char* name, int32 token,
|
||||||
uint32 resize, uint32 flags, DrawingEngine* driver)
|
uint32 resize, uint32 flags, DrawingEngine* driver)
|
||||||
:
|
:
|
||||||
@@ -565,7 +566,7 @@ Layer::MoveBy(float x, float y)
|
|||||||
{
|
{
|
||||||
STRACE(("Layer(%s)::MoveBy() START\n", Name()));
|
STRACE(("Layer(%s)::MoveBy() START\n", Name()));
|
||||||
if (!fParent) {
|
if (!fParent) {
|
||||||
CRITICAL("ERROR: in Layer::MoveBy()! - No parent!\n");
|
fFrame.OffsetBy(x, y);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user