Hug Screen adjustment

Ok I Have been trying for 3 hours to edit the HUD in Deathrun on my server. I Have been trying to draw a logo to the bottom right of the screen but the issue is it does not scale the picture down to other resolutions. My code has the hietgh and width stuff to adjust the screen resolution but it still scales it wrong. Does anyone know what I am doing wrong or how to adjust the placement and not just the scaling of the pic. Here is my code:


surface.SetDrawColor( 255, 255, 255, 255) 
surface.SetMaterial( Material( "icon16/pad.png" ) )
surface.DrawTexturedRect( ScrW() * 0.5, ScrH() * 0.5, 300, 300 )

Try giving it a… hug. :suicide:

For your info, a 16x16 pixel image scaled up to 300x300 is going to look like utter shit.

The image was not 16x16. It is a custom c4d logo I made and put it in that folder. The actual image is 1200x1200. You can always scale a picture down, but not up.

Always make images at a resolution of a power of 2.

16, 32, 64, 128, 256, 512, 1024, 2048, etc

Also, you are only scaling the x and y of the image. 300, 300 is the width and height.