osdimage gaffe

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

osdimage gaffe

Post by morbydvisns »

Software:Universal Client
Version Number:
________________________________________________________________________
Location
planet
________________________________________________________________________
Description:
Image
________________________________________________________________________
Steps to Replicate:
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

this is the bright red graphic that's in question.

osdimage xpos,ypos,xpixelswide,ypixelshigh


the first should have no image as it is 0 wide off the starting position, instead of putting it over there nowhere near where i told it to draw.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Using 0 for an image width tells the client to render the image at it's original size. (As a zero-width image doesn't make much sense :] ).

Btw, dunno if it helps any, but you may find these useful?

Code: Select all

osdaddat( RECT, x, y, w, h, "", "FF0000" )
osdaddat( LINE, x, y, w, h, "", "FFFFFF" )
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

Ok i'll try those when i get done working on these weed eater engines that are the bane of my day. How i had it worked as intended at the time that I wrote it. I'll probably just make it draw nothign if the % is at 0, will be just as well.
Locked