Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framebuffer #33

Open
gaaw7 opened this issue Jul 16, 2019 · 4 comments
Open

Framebuffer #33

gaaw7 opened this issue Jul 16, 2019 · 4 comments

Comments

@gaaw7
Copy link

gaaw7 commented Jul 16, 2019

With version 0.91, Microwindows show correctly png images but with the last version (0.94pre) doesn't show the image with correct colors.
After compiled with this config file you can run demo-composite or demo-blit directly on console.
Other thing i'm getting error when i compile with vnc server.
I used:

  • Slackware 14.2 kernel 4.4.14-smp, lilo.conf with vga=791
  • jpeg9c
  • png 1.6.37
  • freetype 2.10

blit

composite

config.txt

@ghaerr
Copy link
Owner

ghaerr commented Jul 18, 2019

The video mode you're using vga=791 is 16 bit color 1024x768. I don't have a framebuffer setup for 16 bit (working on it), so I'm only guessing that perhaps the truecolor -> 565 alpha blit routine is possibly not called correctly from other commits, since the non-alpha blended colors seem to be working.

Any chance you can boot into a 1024x768 24-bit color mode (vga=792) to see whether the problem persists? I am running 32 bit framebuffer and things look fine. If you can give me another day or so I hope to have a 16-bit FB setup.

What is the other error you're getting with the vnc server compile?

@ghaerr
Copy link
Owner

ghaerr commented Jul 18, 2019

Ok, I've got a 16-bit frame buffer setup and have duplicated your problem.

I'm not quite sure the fix yet, but everything will work for the time being if you
set SCREEN_PIXTYPE=MWPF_TRUECOLOR565 in your config file,
rather than using the default MWPF_TRUECOLORARGB.

@gaaw7
Copy link
Author

gaaw7 commented Jul 19, 2019

Thanks Gregory,
with 24 bits works ok.
When compiled with vnc support i've received this error

In file included from /usr/include/rfb/rfb.h:41:0,
from /root/microwindows/microwindows-master/src/nanox/srvmain.c:25:
/usr/include/stdio.h:314:6: error: unknown type name '_IO_cookie_io_functions_t'
_IO_cookie_io_functions_t __io_funcs) __THROW __wur;
^
/root/microwindows/microwindows-master/src/nanox/srvmain.c: In function 'GsInitialize':
/root/microwindows/microwindows-master/src/nanox/srvmain.c:1014:14: warning: implicit declaration of function 'GdOpenVNC' [-Wimplicit-function-declaration]
if (!GdOpenVNC(psd, Argc, Argv)) {
^
/root/microwindows/microwindows-master/src/nanox/srvmain.c:1014:29: error: 'Argc' undeclared (first use in this function)
if (!GdOpenVNC(psd, Argc, Argv)) {
^
/root/microwindows/microwindows-master/src/nanox/srvmain.c:1014:29: note: each undeclared identifier is reported only once for each function it appears in
/root/microwindows/microwindows-master/src/nanox/srvmain.c:1014:35: error: 'Argv' undeclared (first use in this function)
if (!GdOpenVNC(psd, Argc, Argv)) {
^
/root/microwindows/microwindows-master/src/nanox/srvmain.c: In function 'GsTerminate':
/root/microwindows/microwindows-master/src/nanox/srvmain.c:1125:2: warning: implicit declaration of function 'GdCloseVNC' [-Wimplicit-function-declaration]
GdCloseVNC();
^

@gaaw7 gaaw7 closed this as completed Jul 19, 2019
@gaaw7 gaaw7 reopened this Jul 19, 2019
@ghaerr
Copy link
Owner

ghaerr commented Jul 24, 2019

Not sure what the reason for your stdio.h error is.

The Argc and Argv errors are because the HAVE_VNC_SERVER isn't supported when compiling with LINK_APP_INTO_SERVER. It will compile when that option is set to N.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants