diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
diff --git a/assets/logo.svg b/assets/logo.svg
new file mode 100755
index 0000000..885833d
--- /dev/null
+++ b/assets/logo.svg
@@ -0,0 +1,46 @@
+
+
diff --git a/assets/testing.svg b/assets/testing.svg
new file mode 100755
index 0000000..f7fc674
--- /dev/null
+++ b/assets/testing.svg
@@ -0,0 +1,17 @@
+
+
diff --git a/src/fs.c b/src/fs.c
old mode 100644
new mode 100755
diff --git a/src/fs.h b/src/fs.h
old mode 100644
new mode 100755
diff --git a/src/grid.c b/src/grid.c
old mode 100644
new mode 100755
diff --git a/src/grid.h b/src/grid.h
old mode 100644
new mode 100755
diff --git a/src/main.c b/src/main.c
old mode 100644
new mode 100755
index 91b6121..44b7b8b
--- a/src/main.c
+++ b/src/main.c
@@ -25,6 +25,8 @@ int main(int argc, char* args[]) {
if (IMG_Init(IMG_INIT_JPG || IMG_INIT_PNG) < 0) {
fprintf(stderr, "Could not initialize SDL2_image: %s\n", IMG_GetError());
}
+
+ SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
window = SDL_CreateWindow("pscsp",
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
@@ -91,17 +93,11 @@ int main(int argc, char* args[]) {
if(e.type == SDL_QUIT){
quit = true;
}
- if(e.type == SDL_MOUSEWHEEL){
- if(e.wheel.y > 0){ // scroll up
- if(zoom < max_zoom && currentKeyStates[SDL_SCANCODE_LCTRL]){
- zoom++;
- }
- }
- else if(e.wheel.y < 0){ // scroll down
- if(zoom > min_zoom && currentKeyStates[SDL_SCANCODE_LCTRL]){
- zoom--;
- }
- }
+ if(e.type == SDL_MOUSEWHEEL && currentKeyStates[SDL_SCANCODE_LCTRL]){
+ printf("%d\n", e.wheel.y);
+ zoom += e.wheel.y * 4;
+ if( zoom > max_zoom) zoom = max_zoom;
+ else if(zoom < min_zoom) zoom = min_zoom;
}
}
if(currentKeyStates[SDL_SCANCODE_ESCAPE]){
diff --git a/src/texture.c b/src/texture.c
old mode 100644
new mode 100755
diff --git a/src/texture.h b/src/texture.h
old mode 100644
new mode 100755