From 05a96a36b7b247368133729b6a26ebdf13cf9366 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 10 May 2012 20:02:22 +0200 Subject: [PATCH] enable multisampled display - it may help to draw prettier primitives in future --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.c b/src/main.c index dda5a41..cb97d21 100644 --- a/src/main.c +++ b/src/main.c @@ -345,6 +345,9 @@ int main(int argc, char **argv){ else al_set_new_display_flags(ALLEGRO_WINDOWED); al_set_new_display_option(ALLEGRO_VSYNC, atoi(GetConfigOptionDefault("SuperDerpy", "vsync", "1")), ALLEGRO_SUGGEST); al_set_new_display_option(ALLEGRO_OPENGL, atoi(GetConfigOptionDefault("SuperDerpy", "opengl", "1")), ALLEGRO_SUGGEST); + al_set_new_display_option(ALLEGRO_SAMPLE_BUFFERS, 1, ALLEGRO_SUGGEST); + al_set_new_display_option(ALLEGRO_SAMPLES, 8, ALLEGRO_SUGGEST); + game.display = al_create_display(game.width, game.height); if(!game.display) { fprintf(stderr, "failed to create display!\n");