I have this script:
But when I do this, the image, which is 109 by 98, gets shrunk and a border added around it. I just want it to fill the window.
(What it should do) (What it does)
http://img.photobucket.com/albums/v108/ ... /error.png[/IMG]
What is causing this, and how can I solve this bug?
Code:
#-----------------
# Portrait Window
#-----------------
class Window_HudPortrait < Window_Base
def initialize
super(508, 10, 121, 112)
self.contents = Bitmap.new(width - 32, height - 32)
self.back_opacity = 255
refresh
end
def refresh
self.contents.clear
@bitmap = RPG::Cache.picture("untitled.png")
self.contents.blt(0, 0, @bitmap, Rect.new(0, 0, 109, 98), 255)
end
end
But when I do this, the image, which is 109 by 98, gets shrunk and a border added around it. I just want it to fill the window.
(What it should do) (What it does)
http://img.photobucket.com/albums/v108/ ... /error.png[/IMG]
What is causing this, and how can I solve this bug?