ChangeLog + I forgot to commit xbm2lbm

This commit is contained in:
bsongis
2012-03-04 19:49:55 +00:00
parent 402eb726d2
commit d8f74f2c8e
2 changed files with 15 additions and 8 deletions
+5 -6
View File
@@ -1,11 +1,8 @@
#! /usr/bin/env ruby
require 'pp'
def main(xbm)
def main(header, xbm)
base=xbm.sub(/\.xbm/,"")
cols,rows=1,1
if base.sub! /_(\d+)x(\d+)/,""
@@ -35,7 +32,9 @@ def main(xbm)
File.open("#{base}.lbm","w"){|f|
col=0
f.printf("%d,%d,\n",w/cols,h/rows)
if header == "yes"
f.printf("%d,%d,\n",w/cols,h/rows)
end
rows.times{|row|
(hb/rows).times{|yb| yb
w.times{|xp|
@@ -48,4 +47,4 @@ def main(xbm)
end
main(ARGV[0])
main(ARGV[0], ARGV[1])