resedit 1.8.5 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f076cd96b73b751c42dbd40c51c2d2dcbfeda73
4
- data.tar.gz: f6ed09115d8564692914c8108ab78a45ecde1ef5
3
+ metadata.gz: fed7894a50f239e86b403852b40739de0fdf3aed
4
+ data.tar.gz: bdfc5e456e813f124c2e05ed2dbd758fff2cedfe
5
5
  SHA512:
6
- metadata.gz: 1e72a2f984596a199621dfcc47dd23d54314934104cffba37fd229f3a90446211004fba87ecc15fb8e5ef400b4ddde27265ea0e7c6a6e6b3cf99179ac14348a7
7
- data.tar.gz: 2e944951d3a6c31cdbe60fbf417082b64a1b55dcf09570660635eaf9823448926480c44466470b390b2ee0e06819e397cb0f7d325f9bf013204a75ffa047e871
6
+ metadata.gz: 68d53d4e61f18f555e8f5ea0b0a34cbc0200060f1f0a15d84174b49573df2cd172b185a20d1253eb159986ad535dbc65bd6f845808bc2fc3e275e3537c4ff65b
7
+ data.tar.gz: b62b9c92c84626c819a16d6575ed48f70b831cfdc5065e75b526d9a95dadbf1b6c097a0b8e489bbbc57f99bc2de097f34c262d6d48dd6240a09b08cdf96103e8
@@ -25,5 +25,5 @@ require 'resedit/mz/multiexe'
25
25
 
26
26
 
27
27
  module Resedit
28
- VERSION = "1.8.5"
28
+ VERSION = "1.8.6"
29
29
  end
@@ -54,13 +54,13 @@ module Resedit
54
54
  end
55
55
 
56
56
  def gradient(steps)
57
- map = [@from]
58
- c = steps-1.0
57
+ map = [@from.to_i]
58
+ c = steps
59
59
  for i in 1..steps-2
60
60
  v = 1.0 * i / c
61
- map += [ (@from*(1.0-v) + @to*v).to_i ]
61
+ map << (@from*(1.0-v) + @to*v).to_i
62
62
  end
63
- map += [@to]
63
+ map << @to.to_i
64
64
  #puts map
65
65
  return map
66
66
  end
@@ -29,7 +29,7 @@ module Resedit
29
29
 
30
30
  def colorMap(val)
31
31
  @colmap = buildBppMap() if !@colmap
32
- #@puts "#{val} = #{@colmap[val].to_s(16)}"
32
+ #puts "#{val} = #{@colmap[val].to_s(16)}"
33
33
  return @colmap[val]
34
34
  end
35
35
 
@@ -19,6 +19,7 @@ module Resedit
19
19
  def draw(image, x, y)
20
20
  for j in 0..@height-1
21
21
  for i in 0..@width-1
22
+ #p "#{@index} #{@width} #{@height} #{i} #{j} #{valueAt(i,j)}"
22
23
  image.setPixel(x+i, y+j, @font.colorMap(valueAt(i,j))) if hasPixel(i,j)
23
24
  end
24
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resedit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.5
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bjfn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-30 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chunky_png