Jump to ID:
Graphics

Project Home

Documents

Discussions

Wiki

Project Info
Forum Topic - gf_layer_attach() fails.: Page 1 of 3 (3 Items)
   
 
 
gf_layer_attach() fails.  
Hello everyone,

I`m having a problem with example program that draws rectangle. The code is
from topic
http://community.qnx.com/sf/discussion/do/listPosts/projects.graphics/discussion.advanced_graphics.topc8189?_pagenum=1,
but I enclose copy of source without long comments so it is easier to look
through.

As mentioned in topic of this message there is problem with
gf_layer_attach() function that fails. The output of the running program is:

Number of displays: 1
Display 0: 1280X1024, refresh = 60Hz
Number of layers: 1
gf_layer_attach() failed

I`m sending sloginfo and pidin outputs and my display.conf.

I have no idea why gf_layer_attach fails, hope you will help me.

Generally I`m working in Momentics IDE, so if I run this program as QNX
C/C++ App will I see any "drawn rectangles" or should I run the program
directly under QNX? Maybe this question is silly but I`m just a beginner.
Attachment: Text qnx_example.cc 3.59 KB Text sloginfo 4.24 KB Text pidin_out 8.15 KB Text display.conf 2.71 KB