|
|
|
@ -426,32 +426,23 @@ RUNNER_TEST(surface_dimension) |
|
|
|
|
const struct ivi_layout_interface *lyt = ctx->layout_interface; |
|
|
|
|
struct ivi_layout_surface *ivisurf; |
|
|
|
|
const struct ivi_layout_surface_properties *prop; |
|
|
|
|
int32_t dest_width; |
|
|
|
|
int32_t dest_height; |
|
|
|
|
|
|
|
|
|
ivisurf = lyt->get_surface_from_id(IVI_TEST_SURFACE_ID(0)); |
|
|
|
|
runner_assert(ivisurf != NULL); |
|
|
|
|
|
|
|
|
|
runner_assert(lyt->surface_get_dimension( |
|
|
|
|
ivisurf, &dest_width, &dest_height) == IVI_SUCCEEDED); |
|
|
|
|
runner_assert(dest_width == 1); |
|
|
|
|
runner_assert(dest_height == 1); |
|
|
|
|
prop = lyt->get_properties_of_surface(ivisurf); |
|
|
|
|
runner_assert_or_return(prop); |
|
|
|
|
runner_assert(prop->dest_width == 1); |
|
|
|
|
runner_assert(prop->dest_height == 1); |
|
|
|
|
|
|
|
|
|
runner_assert(IVI_SUCCEEDED == |
|
|
|
|
lyt->surface_set_dimension(ivisurf, 200, 300)); |
|
|
|
|
|
|
|
|
|
runner_assert(lyt->surface_get_dimension( |
|
|
|
|
ivisurf, &dest_width, &dest_height) == IVI_SUCCEEDED); |
|
|
|
|
runner_assert(dest_width == 1); |
|
|
|
|
runner_assert(dest_height == 1); |
|
|
|
|
runner_assert(prop->dest_width == 1); |
|
|
|
|
runner_assert(prop->dest_height == 1); |
|
|
|
|
|
|
|
|
|
lyt->commit_changes(); |
|
|
|
|
|
|
|
|
|
runner_assert(lyt->surface_get_dimension( |
|
|
|
|
ivisurf, &dest_width, &dest_height) == IVI_SUCCEEDED); |
|
|
|
|
runner_assert(dest_width == 200); |
|
|
|
|
runner_assert(dest_height == 300); |
|
|
|
|
|
|
|
|
|
prop = lyt->get_properties_of_surface(ivisurf); |
|
|
|
|
runner_assert_or_return(prop); |
|
|
|
|
runner_assert(prop->dest_width == 200); |
|
|
|
@ -491,8 +482,6 @@ RUNNER_TEST(surface_destination_rectangle) |
|
|
|
|
const struct ivi_layout_interface *lyt = ctx->layout_interface; |
|
|
|
|
struct ivi_layout_surface *ivisurf; |
|
|
|
|
const struct ivi_layout_surface_properties *prop; |
|
|
|
|
int32_t dest_width; |
|
|
|
|
int32_t dest_height; |
|
|
|
|
|
|
|
|
|
ivisurf = lyt->get_surface_from_id(IVI_TEST_SURFACE_ID(0)); |
|
|
|
|
runner_assert(ivisurf != NULL); |
|
|
|
@ -516,11 +505,6 @@ RUNNER_TEST(surface_destination_rectangle) |
|
|
|
|
|
|
|
|
|
lyt->commit_changes(); |
|
|
|
|
|
|
|
|
|
runner_assert(lyt->surface_get_dimension( |
|
|
|
|
ivisurf, &dest_width, &dest_height) == IVI_SUCCEEDED); |
|
|
|
|
runner_assert(dest_width == 200); |
|
|
|
|
runner_assert(dest_height == 300); |
|
|
|
|
|
|
|
|
|
prop = lyt->get_properties_of_surface(ivisurf); |
|
|
|
|
runner_assert_or_return(prop); |
|
|
|
|
runner_assert(prop->dest_width == 200); |
|
|
|
|