Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - gf_surface_create and incorrect stride: Page 1 of 4 (4 Items)
   
gf_surface_create and incorrect stride  
Hello,
I want to use gf_surface_create in order to create a scratchpad for offline drawing, then blit it to the main surface 
layer.
I can pass some parameter, but no stride. When I look to the surface info structure I see that the stride is populated 
with the same stride of the main layer. But I think it is incorrect:
Display 1024x768 32bpp
- Main surface layer -> surface_info.stride 4096 (means 1024 pixel x 4 bytes/pixel)

Scratchpad surface: 500x500 32bpp
- surface_info.stride: 4096 <---??? I expect 2000 (i.e. 500 pixel x 4 bytes/pixel)

So if I want to "raw write" to surface_info.vaddr a number of raw pixel: what is the real scanline?

Thanks, 
Mario.