gosu 0.8.0.pre4 → 0.8.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9671065f952ce2b0c1c21c05764bf32e21413839
4
- data.tar.gz: 6bdab075165e4ee1a8d02c82c15d0d9a7bbcd2ac
3
+ metadata.gz: 1889cd8967a000617b963d0b4c5e545da6028f20
4
+ data.tar.gz: 6bf2f49b9de7e560794ffd743c2ded349dcf4f19
5
5
  SHA512:
6
- metadata.gz: be621974356bc5a746bafeb2cc4da576a3cc157599fc18d6b6b47a4bb9bb39fbeff4502a4cb4b7f884441e3951b91f6d3cccb95a08a1ebcc48cc31a1b4ea2f6e
7
- data.tar.gz: 71f034d78c7cf1b5b57d5486b856ff33c69ebfcd05dfd29d9007756d52793fe1a75ac3c324fc5e89614f34d2c3eba67d7f18a4bd82040f3bc3499e4c2d7881b2
6
+ metadata.gz: cd7a2e2f1734c0ec1477f2c7c1a00ba59127d0d5b9f4a6bf724542ec97c9e75e1bd79948a7b2e9c29a4a6aa1e954cc8c1b7309ca6004d80ee2a7d72a8ca0657b
7
+ data.tar.gz: a98a8e5caf16dec02f7a9632449689f2960497e74352fefadcd5d071cf30c6e46c2e287c66c6dcb28f4bce296b9665e6f7441e09c8600c71086b196be2d920b3
@@ -40,7 +40,8 @@ class Gosu::ClipRectStack
40
40
  result.height = resultBottom - result.y;
41
41
  }
42
42
 
43
- // On the iPhone, we may have to multiple everything by 2 for retina displays.
43
+ // On the iPhone, we may have to multiply everything by 2 for Retina displays.
44
+ // TODO: Doesn't this affect Retina Macs as well?
44
45
  // TODO: This should be handled by a global transform.
45
46
  int fac = clipRectBaseFactor();
46
47
  result.x *= fac, result.y *= fac, result.width *= fac, result.height *= fac;
@@ -50,8 +50,8 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
50
50
  if (SDL_Init(SDL_INIT_VIDEO) < 0)
51
51
  throw std::runtime_error("Failed to initialize SDL Video");
52
52
 
53
- unsigned actualWidth = width;
54
- unsigned actualHeight = height;
53
+ int actualWidth = width;
54
+ int actualHeight = height;
55
55
  double scaleFactor = 1.0;
56
56
  double blackBarWidth = 0;
57
57
  double blackBarHeight = 0;
@@ -95,6 +95,8 @@ Gosu::Window::Window(unsigned width, unsigned height, bool fullscreen, double up
95
95
  SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
96
96
  #endif
97
97
 
98
+ SDL_GL_GetDrawableSize(pimpl->window, &actualWidth, &actualHeight);
99
+
98
100
  pimpl->context = SDL_GL_CreateContext(pimpl->window);
99
101
  SDL_GL_MakeCurrent(pimpl->window, pimpl->context);
100
102
  SDL_GL_SetSwapInterval(1);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.pre4
4
+ version: 0.8.0.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-11 00:00:00.000000000 Z
11
+ date: 2014-06-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.