Menu

#7 Hacky window scaling

Unstable
open
nobody
Interface (7)
5
2006-03-12
2006-03-12
kaeladan
No

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

Discussion

  • kaeladan

    kaeladan - 2006-03-12
     
  • kaeladan

    kaeladan - 2006-03-12

    Logged In: YES
    user_id=1465793

    Oh, I meant to add: the diff was taken against cotvnc 2.0b4.

    K

     
  • Jason Harris

    Jason Harris - 2007-03-15

    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?

     
  • Jared McIntyre

    Jared McIntyre - 2007-03-16

    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.

     

Log in to post a comment.