mcobit
Advanced Member
- Joined
- Jul 28, 2008
- Messages
- 6,909
You just need to do the following 3 modifications to notaz' latest SDL in src/video/omapdss/osdl_video.c:I sent a PM to john4p hoping he could work his magic on the latest notaz SDL, maybe he will help.
notaz would be the man for this but I don't want to bug him as he is the kernel man also.
1) in line 294 change:
ret = osdl_setup_omapfb(fd, 1, x, y, w, h, width * height * ((bpp + 7) / 8) * 2);
to:
ret = osdl_setup_omapfb(fd, 1, x, y, w, h, width * height * ((bpp + 7) / 8) * 3);
2) in line 325 change:
pdata->fbdev = vout_fbdev_init(fbname, &width, &height, bpp, doublebuf ? 2 : 1);
to:
pdata->fbdev = vout_fbdev_init(fbname, &width, &height, bpp, doublebuf ? 3 : 1);
3) in line 333 change:
border_l, border_r, border_t, border_b, doublebuf ? 2 : 1);
to:
border_l, border_r, border_t, border_b, doublebuf ? 3 : 1);
Then you can easily build the sdl lib using autotools. I've built it directly on Pandora.
Would be convenient if notaz made this configurable as an entry to the omapsdl.cfg, e.g. "alternative_dblbuffering = 1" would use 3 instead of 2 in the parts posted above.
Thanks! Is this what works for you, or is this something, that would work with more than 2x scale?