good point,
I think GetScreenSize in primary.c should have something like:
if (dfb_config->mode.width)
width = dfb_config->mode.width;
else
width = shared->screen_size.w;
at least, that would make more sense to me..
If no objections otherwise I'll change that appropriately.
So your GetScreenSize will return your config, as youo would expect.
Greets
Niels
Anders Bakken wrote:
Is there a way to query the size of the primary surface?
My problem is the following:
I am running on X11 and have set the mode to this in .directfbrc:
mode=1280x720
When using IDirectFBScreen::GetSize it returns the size of my entire
Desktop. E.g. 1600x1200.
I am running in Windowed mode so I don't actually create a primary
surface myself.
regards
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev