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 +4 -4
- data/src/Graphics/ClipRectStack.hpp +2 -1
- data/src/Window.cpp +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1889cd8967a000617b963d0b4c5e545da6028f20
|
4
|
+
data.tar.gz: 6bf2f49b9de7e560794ffd743c2ded349dcf4f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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;
|
data/src/Window.cpp
CHANGED
@@ -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
|
-
|
54
|
-
|
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.
|
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
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|