Open fxzxmicah opened 1 week ago
The right place to ask is highlighted just at the very top of the README ;-)
To answer your question: I recommend looking at the other client examples in https://github.com/LibVNC/libvncserver/tree/master/examples/client and check whether they behave the same and if not, find the difference to your code. HTH!
The gtkvncviewer is a GTK3 program? It may be too old to build it on GTK3.
Might be GTK2, you can check in the build system.
Also I don't see anything special in the code so maybe it's blurry even if it compiles.
Yeah maybe your server is forcing some Tight encoding parameters - you can try with another viewer and check.
I've used tigervnc and it's very clear when it connects to my server. Is it some kind of codec issue? tigervnc seems to be using a video codec. Also I can't turn off JPEG, if I do, it causes GDK to fail to render, so there may be some kind of compatibility issue between the two.
It's basically tight quality and compression and bit depth you can play with. You can also check https://github.com/bk138/multivnc/blob/master/src/VNCConn.cpp and remmina, they're both using libvncclient.
Then is it a bug that turning off JPEG causes the GDK to not render?
I don't know. I can just guess that you're setting quality level and/or compress level to strange values. For instance -1 for compress is pretty uncommon. Check other's code where they're having non-blurry images.
This must not be my problem, because even if I use all the defaults I still can't turn off JPEG with client->appData.enableJPEG = FALSE
. If I set this value, GDK stops rendering.
I don't know what this setting does. To "turn off" tight encoding, you simply must not request it. See https://github.com/bk138/multivnc/blob/master/src/VNCConn.cpp#L1163 for instance.
Encoding without tight will still result in no screen.
Please just look at the provided client and maybe server examples. They do work.
multivnc doesn't use GTK4 and I can barely reference it. I've also tried a number of techniques for rendering the screen, but they're all blurry. Not being able to use other encodings might be a server issue though.
A server always must report Raw encoding if I'm not mistaken.
Anyway, I think we're getting off-topic here - isn't this more GTK4-related then?
I can't think of any other reason if the image given by libvncclient itself is not blurry.
Maybe it is - you can verify with another libvncclient-based client like Remmina or MultiVNC.
I know this may not be the right place to ask questions, but I couldn't find anywhere else to ask.
The vnc client I wrote renders the remote desktop blurry, how can I fix it? I use GTK4. If you need any other information, feel free to ask.
Init:
Draw:
Log: