Tiled rendering: The tile shows now when we request for it.
But so far it is just a white rectangle ;-) - next step is to check if it is something real. Change-Id: I06c5ffe0479970d0ca7531a0d037312dc195865f
This commit is contained in:
@@ -105,7 +105,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
|
IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
|
||||||
{
|
{
|
||||||
int contextWidth = extractInt(mpContextWidth);
|
int contextWidth = extractInt(mpContextWidth);
|
||||||
int contextHeight = extractInt(mpContextHeight);
|
int contextHeight = extractInt(mpContextHeight);
|
||||||
@@ -133,6 +133,9 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
|
|||||||
// copy the aDevice content to mpImage
|
// copy the aDevice content to mpImage
|
||||||
BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel()));
|
BitmapEx aBitmap(aDevice.GetBitmapEx(Point(0,0), aDevice.GetOutputSizePixel()));
|
||||||
mpImage->SetImage(Image(aBitmap));
|
mpImage->SetImage(Image(aBitmap));
|
||||||
|
|
||||||
|
// update the dialog size
|
||||||
|
setOptimalLayoutSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
@@ -15,11 +15,11 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="GtkWindow" id="TiledRendering">
|
<object class="GtkWindow" id="TiledRendering">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
|
<property name="border_width">12</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box1">
|
<object class="GtkBox" id="box1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="border_width">12</property>
|
|
||||||
<property name="spacing">12</property>
|
<property name="spacing">12</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkBox" id="box7">
|
<object class="GtkBox" id="box7">
|
||||||
|
Reference in New Issue
Block a user