Christian wrote:

> I noticed, when displaying icon signs in the gui version of Vim there 
> might be a small line not overdrawn by the sign, caused by the 
> 'linespace' setting set to be one. That does look rather ugly, if you 
> display several signs side by side (see attached screenshot).

Thanks.

> Here is a patch. A couple of comments:
> 1) I am not sure, why a call to gdk_draw_rectangle() is done in the 
> existing code. I have left it out as it seems to be unnecessary

I don't know either.  Perhaps for icons that have transparent parts?
Just guessing.

> 2) not sure, why a height of 127 was hard coded when drawing the size 
> area. I have used the actual sign size for that
> 3) when the sign hight differs from the char_height, it will always be 
> rescaled. This of course has the additional disadvantage of causing a 
> performance issue. Not sure, if this is noticeable, though.

For such small icons performance should not matter.

If someone uses this kind of sign, please try out the patch.

-- 
ARTHUR: (as the MAN next to him is squashed by a sheep) Knights!  Run away!
   Midst echoing shouts of "run away" the KNIGHTS retreat to cover with the odd
   cow or goose hitting them still.  The KNIGHTS crouch down under cover.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui