class << Graphics
alias update_normal_size update
def update
unless @game_sprite
@game_sprite = Sprite.new(Viewport.new)
@game_sprite.viewport.z = 999
@game_sprite.x = @game_sprite.ox = width / 2
@game_sprite.y = @game_sprite.oy = height / 2
@game_sprite.zoom_x = @game_sprite.zoom_y = 2
end
@game_sprite.bitmap.dispose if @game_sprite.bitmap
@game_sprite.bitmap = snap_to_bitmap
update_normal_size
end
end
class << Graphics
alias update_normal_size update
def update
unless @game_sprite
@game_sprite = Sprite.new(Viewport.new)
@game_sprite.viewport.z = 999
@game_sprite.x = @game_sprite.ox = width / 2
@game_sprite.y = @game_sprite.oy = height / 2
@game_sprite.zoom_x = @game_sprite.zoom_y = 2
end
@game_sprite.bitmap.dispose if @game_sprite.bitmap
@game_sprite.bitmap = snap_to_bitmap
update_normal_size
end
end