Skip navigation.
Home
The QNX Community Portal

View topic - Need Help -- gf_surface_create_layer() failed

Need Help -- gf_surface_create_layer() failed

Isn't the name clear?

Need Help -- gf_surface_create_layer() failed

Postby KiranKumarD » Thu Oct 21, 2010 4:05 am

Hi,
I am new to QNX and GUI programming. my requirement is draw 2D graphics using QNX graphics framework (should not use photon).
I am using QNX momentics IDE 30-days evaluation version on windows host and x86platform.

in my program gf_surface_create_layer() was failed to create surface.

gf_surface_t surface;
width = display_info.xres;
height = display_info.yres;
...
if (gf_surface_create_layer(&surface, &layer, 1, 0,
width, height, layer_format, NULL, 0) == GF_ERR_OK) {
gf_layer_set_surfaces(layer, &surface, 1);
/* draw stuff here */
} else {
printf("gf_surface_create_layer() failed\n");
}
}

please help me how to resolve this error.
Attachments
Basic Drawing.zip
(987 Bytes) Downloaded 138 times
KiranKumarD
New Member
 
Posts: 1
Joined: Wed Oct 20, 2010 10:50 am

Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests