nanogui: Microwindows and non zero screenbase
Subject:
Microwindows and non zero screenbase
From:
Fabrice Gautier ####@####.####
Date:
25 Mar 2002 21:13:25 -0000
Message-Id: <B1F6452C89AFD411AE0800A0CC734C239DBB9D@EMAIL1>
Hi,
In the framebuffer driver (scr_fb.c) the framebuffer is mapped with :
psd->addr = mmap(NULL, psd->size, PROT_READ|PROT_WRITE,MAP_SHARED,fb,0);
In my case the video buffer doesnt start on a page boundary so the mmaped
memory start a few bytes earlier. In the linux framebuffer driver this
information is stored in screen_base in an fb_info struct, however it seems
that microwindows doesnt have this information so that when it want to draw
something on the screen, it start at offset 0 (which in my specific case is
not a pixel but something else)
I'm looking for a solution to this problem, any insight on this?
Thank you
--
Fabrice Gautier,
####@####.####