minigl 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/lib/minigl/forms.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8bdac633885e2a5c5e8deef33bfa5b513653952c275beb5bb589ee9c438f46a
4
- data.tar.gz: aad3320fae8b1b1636f1ec14158727017e0fcc34a89ad36f041bbd0d93cf8fc3
3
+ metadata.gz: 21fdeb1f68b17c20f28e8345c9b1a5db961e04554699f9a5dc175c2f4f5f7bb0
4
+ data.tar.gz: 65bb71085c732da8b3188a6659036a47bcd5e86ce0d05e455cb539c6a01ef282
5
5
  SHA512:
6
- metadata.gz: bfae3ced224c32373951cc043ce7f879f62643ed6db78da0e0afc2bdf9d9f862cc613b4f21128f0083d0443ad44cc52a2507a04b2bd7a0e096fcae1f1565efd3
7
- data.tar.gz: e9591dc3f17d163cddcc67873e561a9f11bcb39531268128b4aeb702e91e595b7cf7bd334e876c3cf3c77bf4fd73c9381c2d0a7437e07482dac3b45b81a30ccd
6
+ metadata.gz: e7fbb1f9834e57746593e019a758313cd1a7e8d6029c35d5aa6b47def648097300e54d6230f084e30e69381da41278b9fe29edff7f1570cf81a5f7208356be39
7
+ data.tar.gz: 9176e9708fa07145843149419468427de83a0dea7d08952bf572c09991dbb82006459113fec68b87a2e35db8d8c636b23775ecc78a32fa21eb18435d37f1df2b
data/README.md CHANGED
@@ -29,8 +29,6 @@ After installing the Gosu dependencies, you can just `gem install minigl`.
29
29
  * The [wiki](https://github.com/victords/minigl/wiki) is a work in progress with tutorials and examples.
30
30
  * Test package and examples aren't complete!
31
31
 
32
- ## Version 2.1.0
32
+ ## Version 2.1.1
33
33
 
34
- * Added the missing documentation for the `retro` option in `Res.img`, `Res.imgs` and `Res.tileset`.
35
- * Added the `retro`, `scale_x` and `scale_y` options to the constructors of all form controls.
36
- * Added color options to the `draw` methods of all form controls.
34
+ * Fixed the `TextField`'s selection when scaled.
@@ -772,8 +772,8 @@ module MiniGL
772
772
  selection_color = ((alpha / 2) << 24) | @selection_color
773
773
  G.window.draw_quad @nodes[@anchor1], @text_y, selection_color,
774
774
  @nodes[@anchor2] + 1, @text_y, selection_color,
775
- @nodes[@anchor2] + 1, @text_y + @font.height, selection_color,
776
- @nodes[@anchor1], @text_y + @font.height, selection_color, z_index
775
+ @nodes[@anchor2] + 1, @text_y + @font.height * @scale_y, selection_color,
776
+ @nodes[@anchor1], @text_y + @font.height * @scale_y, selection_color, z_index
777
777
  end
778
778
 
779
779
  if @cursor_visible
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minigl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor David Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-22 00:00:00.000000000 Z
11
+ date: 2018-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu