[aseprite] 85/134: Add check for allegro_init()
Tobias Hansen
thansen at moszumanska.debian.org
Sat Mar 14 17:10:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 2c5ef7d63658c9e01dbee9330b9da04f83adb2f3
Author: David Capello <davidcapello at gmail.com>
Date: Sun Nov 30 12:27:41 2014 -0300
Add check for allegro_init()
---
src/she/alleg4/she_alleg4.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/she/alleg4/she_alleg4.cpp b/src/she/alleg4/she_alleg4.cpp
index 1610f92..650f0bd 100644
--- a/src/she/alleg4/she_alleg4.cpp
+++ b/src/she/alleg4/she_alleg4.cpp
@@ -698,7 +698,9 @@ public:
Alleg4System()
: m_font(font, Alleg4Font::None) // Default Allegro font
{
- allegro_init();
+ if (allegro_init() < 0)
+ throw std::runtime_error("Cannot initialize Allegro library");
+
set_uformat(U_UTF8);
_al_detect_filename_encoding();
install_timer();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list