summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblaise <blaise@macbook-ubuntu.(none)>2011-06-20 18:09:17 -0700
committerblaise <blaise@macbook-ubuntu.(none)>2011-06-20 18:09:17 -0700
commitc7a8ffe01cf955e53b87491e49b4e05cf0ebf496 (patch)
tree0f74286d18d0a8caff37f0e237aa7edc41d9e60e
parent28c180f8cf6ee02e1c2f4883ce75b9e024fa0eb6 (diff)
downloadnyancat-c7a8ffe01cf955e53b87491e49b4e05cf0ebf496.tar.gz
nyancat-c7a8ffe01cf955e53b87491e49b4e05cf0ebf496.tar.bz2
nyancat-c7a8ffe01cf955e53b87491e49b4e05cf0ebf496.zip
added a 10% barrier between the right side of the cat and the right side of the screen, it just looks better this way
-rw-r--r--nyan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nyan.c b/nyan.c
index 2a89b19..fc12d8f 100644
--- a/nyan.c
+++ b/nyan.c
@@ -369,7 +369,7 @@ load_images(void) {
static void
stretch_images(void) {
SDL_Rect stretchto;
- stretchto.w = screen->w;
+ stretchto.w = screen->w - screen->w * .1;
stretchto.h = stretchto.w * cat_img[0]->h / cat_img[0]->w;
SDL_PixelFormat fmt = *(screen->format);