Skip to content

Commit

Permalink
Version 1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
actsl committed Jun 20, 2016
1 parent ca3e7e2 commit 6ce35e0
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Michael Bethke (https://github.com/AVividLight), shuttersparks.
VERSION
=======

1.0.8
1.0.10


LICENSE
Expand Down
10 changes: 5 additions & 5 deletions kiss_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down Expand Up @@ -179,11 +179,13 @@ SDL_Renderer* kiss_init(char* title, kiss_array *a, int w, int h)
IMG_Init(IMG_INIT_PNG);
TTF_Init();
SDL_StartTextInput();
kiss_array_new(a);
window = SDL_CreateWindow(title, srect.w / 2 - w / 2,
srect.h / 2 - h / 2, w, h, SDL_WINDOW_SHOWN);
kiss_array_append(a, WINDOW_TYPE, window);
renderer = SDL_CreateRenderer(window, -1,
SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
kiss_array_new(a);
kiss_array_append(a, RENDERER_TYPE, renderer);
font_new(&kiss_textfont, "kiss_font.ttf", a, kiss_textfont_size);
font_new(&kiss_buttonfont, "kiss_font.ttf", a, kiss_buttonfont_size);
image_new(&kiss_normal, "kiss_normal.png", a, renderer);
Expand All @@ -198,8 +200,6 @@ SDL_Renderer* kiss_init(char* title, kiss_array *a, int w, int h)
image_new(&kiss_right, "kiss_right.png", a, renderer);
image_new(&kiss_selected, "kiss_selected.png", a, renderer);
image_new(&kiss_unselected, "kiss_unselected.png", a, renderer);
kiss_array_append(a, RENDERER_TYPE, renderer);
kiss_array_append(a, WINDOW_TYPE, window);
return renderer;
}

Expand All @@ -209,7 +209,7 @@ int kiss_clean(kiss_array *a)

if (!a) return -1;
if (a->length)
for (i = 0; i < a->length; i++) {
for (i = a->length - 1; i >= 0; i--) {
if (kiss_array_id(a, i) == FONT_TYPE)
TTF_CloseFont((TTF_Font *)
kiss_array_data(a, i));
Expand Down
2 changes: 1 addition & 1 deletion kiss_example1.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down
2 changes: 1 addition & 1 deletion kiss_example2.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down
2 changes: 1 addition & 1 deletion kiss_general.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down
Binary file modified kiss_manual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion kiss_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down
2 changes: 1 addition & 1 deletion kiss_sdl.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#ifndef _kiss_sdl_h
Expand Down
2 changes: 1 addition & 1 deletion kiss_widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
3. This notice may not be removed or altered from any source
distribution.
kiss_sdl version 1.0.8
kiss_sdl version 1.0.10
*/

#include "kiss_sdl.h"
Expand Down

0 comments on commit 6ce35e0

Please sign in to comment.