Blender Git Loki

Git Commits -> Revision 5dac88d

Revision 5dac88d by Ton Roosendaal (master)
June 29, 2006, 09:44 (GMT)
Bugfix from own testing:

In outliner, the icons sometimes were drawing too large or too small.
Same happened in NLA, Action, Image window etc. And it happened
for "International fonts" when set to use 'texture drawing'.

Reason: the API call for setting icon size BIF_icon_set_aspect() was not
used consistantly. Sometimes it was set, sometimes not. And even worse,
for every icon drawn in UI buttons, the icon lookup had to be done twice
because of the aspect function.

Solved it by removing this call, and adding a new function:
BIF_icon_draw_aspect()
The old BIF_icon_draw() call now draws with aspect 1.0 always. The icons
code already had optimal checking for changed sizes, zo a change in aspect
won't result in much cpu overhead. Plus it saves calling icons lookup code,
which will make it all a bit faster.

Andrea: I've added this aspect function a long while ago, I think you also
like it better how it is now? Please check!

Commit Details:

Full Hash: 5dac88dc58e362a58dcd7fb6df1537fb9949b4a7
SVN Revision: 7971
Parent Commit: e5b3fb8
Lines Changed: +61, -94

11 Modified Paths:

/source/blender/include/BIF_interface_icons.h (+3, -2) (Diff)
/source/blender/src/drawaction.c (+2, -2) (Diff)
/source/blender/src/drawimage.c (+3, -3) (Diff)
/source/blender/src/drawnla.c (+4, -4) (Diff)
/source/blender/src/drawnode.c (+5, -9) (Diff)
/source/blender/src/drawtime.c (+2, -2) (Diff)
/source/blender/src/editscreen.c (+0, -19) (Diff)
/source/blender/src/interface_draw.c (+1, -4) (Diff)
/source/blender/src/interface_icons.c (+26, -44) (Diff)
/source/blender/src/interface_panel.c (+0, -5) (Diff)
/source/blender/src/outliner.c (+15, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021