summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/example_complex.c3
-rw-r--r--examples/example_custom.c2
-rw-r--r--examples/example_rwops.c4
-rw-r--r--examples/example_simple.c2
4 files changed, 5 insertions, 6 deletions
diff --git a/examples/example_complex.c b/examples/example_complex.c
index b8dc6ee..aeda110 100644
--- a/examples/example_complex.c
+++ b/examples/example_complex.c
@@ -88,7 +88,7 @@ int main(int argc, char *argv[]) {
}
// Create a resizable window.
- window = SDL_CreateWindow("Example Player", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
+ window = SDL_CreateWindow(filename, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
if(window == NULL) {
fprintf(stderr, "Unable to create a new window!\n");
return 1;
@@ -110,7 +110,6 @@ int main(int argc, char *argv[]) {
// Allow Kit to use more threads
Kit_SetHint(KIT_HINT_THREAD_COUNT, SDL_GetCPUCount() <= 8 ? SDL_GetCPUCount() : 8);
- Kit_SetHint(KIT_HINT_FONT_HINTING, KIT_FONT_HINTING_LIGHT);
// Open up the sourcefile.
// This can be a local file, network url, ...
diff --git a/examples/example_custom.c b/examples/example_custom.c
index f99c94e..8844b79 100644
--- a/examples/example_custom.c
+++ b/examples/example_custom.c
@@ -48,7 +48,7 @@ int main(int argc, char *argv[]) {
}
// Create a resizable window.
- window = SDL_CreateWindow("Example Player", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
+ window = SDL_CreateWindow(filename, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
if(window == NULL) {
fprintf(stderr, "Unable to create a new window!\n");
return 1;
diff --git a/examples/example_rwops.c b/examples/example_rwops.c
index 84370f1..96a3655 100644
--- a/examples/example_rwops.c
+++ b/examples/example_rwops.c
@@ -27,7 +27,7 @@ int main(int argc, char *argv[]) {
// Get filename to open
if(argc != 2) {
- fprintf(stderr, "Usage: custom <filename>\n");
+ fprintf(stderr, "Usage: rwops <filename>\n");
return 0;
}
filename = argv[1];
@@ -40,7 +40,7 @@ int main(int argc, char *argv[]) {
}
// Create a resizable window.
- window = SDL_CreateWindow("Example Player", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
+ window = SDL_CreateWindow(filename, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
if(window == NULL) {
fprintf(stderr, "Unable to create a new window!\n");
return 1;
diff --git a/examples/example_simple.c b/examples/example_simple.c
index 4c581c0..234a83d 100644
--- a/examples/example_simple.c
+++ b/examples/example_simple.c
@@ -39,7 +39,7 @@ int main(int argc, char *argv[]) {
}
// Create a resizable window.
- window = SDL_CreateWindow("Example Player", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
+ window = SDL_CreateWindow(filename, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_RESIZABLE);
if(window == NULL) {
fprintf(stderr, "Unable to create a new window!\n");
return 1;