This is a quickly chucked together hack that scales the frame buffer to the
current window. You'll notice a lot of lines like this in the code:
if (true /* draw the buffer scaled to the current window size */)
{
// Do new stuff
}
else
{
// Do old stuff
}
Basically, these bits have to be hooked up to some check box that the
user can tick if they want scaling. I had a go at trying to work out how to
do this, but NIBs defeated me. Perhaps I'll read a book about them one
day. Or someone clever can explain it to me :)
Anyway, as I said, this is a little hacky. There remains a bug where some
of the framebuffer is clipped by the window - this is due, I imagine, to the
title bar taking up some space. I'm not quite sure where I should be fixing
the height value for this.
K
Logged In: YES
user_id=1465793
Oh, I meant to add: the diff was taken against cotvnc 2.0b4.
K
Logged In: YES
user_id=351330
Originator: NO
I'd prefer to fix this "for real", but we get so many requests for this feature that maybe we should go ahead and add this patch. Opinions?
Logged In: YES
user_id=751989
Originator: NO
I'm for it. I know we need to rework the graphics backend which would get us a whole lot of capabilities and performance, but since no one has had time to work on it, we should probably do this for now.