shithub: dumb

Download patch

ref: d2c58871cb6b0a68d1a077fa607690a7f278e597
parent: 9e8b686503b15d0be8e0d50536a355c43530c008
author: Azamat H. Hackimov <azamat.hackimov@gmail.com>
date: Thu May 5 07:34:31 EDT 2016

Use legacy value.

--- a/dumb/cmake/CMakeLists.txt
+++ b/dumb/cmake/CMakeLists.txt
@@ -143,6 +143,8 @@
 if(BUILD_ALLEGRO4)
    add_library(aldmb ${ALLEGRO_SOURCES})
    set(ALLEGRO4_TARGETS ${ALLEGRO_TARGETS} aldmb)
+   set(ALLEGRO4_HEADERS ../indclude/aldumb.h)
+   target_link_libraries(aldmb ${ALLEGRO_LIBRARIES})
 endif()
 
 set(EXAMPLE_TARGETS "")
@@ -170,8 +172,8 @@
 
 target_link_libraries(dumb m)
 
-INSTALL(FILES ${INSTALL_HEADERS} DESTINATION include/)
-INSTALL(TARGETS dumb ${EXAMPLE_TARGETS}
+INSTALL(FILES ${INSTALL_HEADERS} ${ALLEGRO_HEADERS} DESTINATION include/)
+INSTALL(TARGETS dumb ${EXAMPLE_TARGETS} ${ALLEGRO_TARGETS}
     RUNTIME DESTINATION bin
     LIBRARY DESTINATION lib${LIB_SUFFIX}
     ARCHIVE DESTINATION lib${LIB_SUFFIX}
--- a/dumb/src/allegro/datmod.c
+++ b/dumb/src/allegro/datmod.c
@@ -36,7 +36,7 @@
 	if (!df)
 		return NULL;
 
-	duh = dumb_read_mod(df, 0);
+	duh = dumb_read_mod(df, 2);
 
 	dumbfile_close(df);
 
--- a/dumb/src/allegro/datmodq.c
+++ b/dumb/src/allegro/datmodq.c
@@ -36,7 +36,7 @@
 	if (!df)
 		return NULL;
 
-	duh = dumb_read_mod_quick(df, 0);
+	duh = dumb_read_mod_quick(df, 2);
 
 	dumbfile_close(df);