Sun Dec 21 21:43:58 2003 Michael Jennings (mej)
Fix :hscale and :vscale to work properly. SVN revision: 8164
This commit is contained in:
parent
200ba29a4c
commit
0d54ac8f90
|
@ -5136,3 +5136,7 @@ Add libast libs to GRLIBS.
|
||||||
|
|
||||||
Hopefully fixed Etbg_update_list to be Solaris /bin/sh-friendly.
|
Hopefully fixed Etbg_update_list to be Solaris /bin/sh-friendly.
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
Sun Dec 21 21:43:58 2003 Michael Jennings (mej)
|
||||||
|
|
||||||
|
Fix :hscale and :vscale to work properly.
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
|
|
@ -1166,6 +1166,12 @@ render_simage(simage_t *simg, Window win, unsigned short width, unsigned short h
|
||||||
xscaled = (unsigned short) ((xsize * x_ratio) * ((float) w / 100.0));
|
xscaled = (unsigned short) ((xsize * x_ratio) * ((float) w / 100.0));
|
||||||
yscaled = (unsigned short) ((ysize * x_ratio) * ((float) h / 100.0));
|
yscaled = (unsigned short) ((ysize * x_ratio) * ((float) h / 100.0));
|
||||||
} else {
|
} else {
|
||||||
|
if (!w && BITFIELD_IS_SET(simg->pmap->op, OP_HSCALE)) {
|
||||||
|
w = 100;
|
||||||
|
}
|
||||||
|
if (!h && BITFIELD_IS_SET(simg->pmap->op, OP_VSCALE)) {
|
||||||
|
h = 100;
|
||||||
|
}
|
||||||
if (w > 0) {
|
if (w > 0) {
|
||||||
xscaled = width * ((float) w / 100.0);
|
xscaled = width * ((float) w / 100.0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue