]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.c
GFX : Adjusted gfx/net.jpg size and orientation
[xonotic/darkplaces.git] / jpeg.c
diff --git a/jpeg.c b/jpeg.c
index 0a6e160a2bedd3b14597af69e42dcf1b3490855e..3791480718bbcc474053cb824dd5bfcdca66c2ac 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -22,7 +22,8 @@
 */
 
 
-#include "quakedef.h"
+#include "darkplaces.h"
+#include "cl_screen.h"
 #include "image.h"
 #include "jpeg.h"
 #include "image_png.h"
@@ -522,7 +523,7 @@ qbool JPEG_OpenLibrary (void)
 #endif
 
        // Load the DLL
-       return Sys_LoadLibrary (dllnames, &jpeg_dll, jpegfuncs);
+       return Sys_LoadDependency (dllnames, &jpeg_dll, jpegfuncs);
 #endif
 }
 
@@ -537,7 +538,7 @@ Unload the JPEG DLL
 void JPEG_CloseLibrary (void)
 {
 #ifndef LINK_TO_LIBJPEG
-       Sys_UnloadLibrary (&jpeg_dll);
+       Sys_FreeLibrary (&jpeg_dll);
        jpeg_tried_loading = false; // allow retry
 #endif
 }