imageruby-bmp-c 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -0,0 +1,3 @@
1
+ 0.1.1 Fixed load of 32 bits bitmaps
2
+
3
+ 0.1.0 First release
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ require 'rake/gempackagetask'
6
6
 
7
7
  spec = Gem::Specification.new do |s|
8
8
  s.name = 'imageruby-bmp-c'
9
- s.version = '0.1.0'
9
+ s.version = '0.1.1'
10
10
  s.author = 'Dario Seminara'
11
11
  s.email = 'robertodarioseminara@gmail.com'
12
12
  s.platform = Gem::Platform::RUBY
@@ -65,7 +65,7 @@ VALUE rb_decode_bitmap(VALUE recv, VALUE rb_data, VALUE rb_image) {
65
65
  for (y=0; y<height; y++) {
66
66
  for (x=0; x<width; x++) {
67
67
 
68
- int offset = pixel_data_offset+x*4+(height-y-1)*width_array_len;
68
+ int offset = ((height-y-1)*width+x)*4;
69
69
  int index = (y*width+x)*3;
70
70
 
71
71
  image_pixel_data_string[index] = file_pixel_data_string[offset];
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imageruby-bmp-c
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dario Seminara