Minor tidying

This commit is contained in:
Maruno17
2021-03-09 21:31:17 +00:00
parent 4c35a7ecfe
commit 117396f8e2
11 changed files with 38 additions and 34 deletions

View File

@@ -138,7 +138,6 @@ class BitmapWrapper < Bitmap
end
module BitmapCache
@cache = ObjectSpace::WeakMap.new
@@ -154,7 +153,9 @@ module BitmapCache
end
def self.debug
File.open("bitmapcache2.txt", "wb") { |f|
t = Time.now
filename = t.strftime("%H %M %S.%L.txt")
File.open("bitmapcache_" + filename, "wb") { |f|
for i in @cache.keys
k = fromCache(i)
if !k

View File

@@ -199,10 +199,10 @@ class GifBitmap
filestrName=file+".gif"
elsif (filestring=pbGetFileChar(file+".png"))
filestrName=file+".png"
elsif (filestring=pbGetFileChar(file+".jpg"))
filestrName=file+".jpg"
elsif (filestring=pbGetFileChar(file+".bmp"))
filestrName=file+".bmp"
# elsif (filestring=pbGetFileChar(file+".jpg"))
# filestrName=file+".jpg"
# elsif (filestring=pbGetFileChar(file+".bmp"))
# filestrName=file+".bmp"
end
end
end