diff --git a/dd_grwin32/CMakeLists.txt b/dd_grwin32/CMakeLists.txt index a2a7650d..eb7dee33 100644 --- a/dd_grwin32/CMakeLists.txt +++ b/dd_grwin32/CMakeLists.txt @@ -12,6 +12,7 @@ add_library(dd_grwin32 STATIC ${HEADERS} ${CPPS}) target_link_libraries(dd_grwin32 PRIVATE 2dlib misc + plog::plog ) target_compile_definitions(dd_grwin32 PRIVATE DX_APP) target_link_libraries(dd_grwin32 PRIVATE ${DDRAW_LIBRARY}) diff --git a/dd_grwin32/ddgrWin32DX.cpp b/dd_grwin32/ddgrWin32DX.cpp index 9e4fdb5b..7f081e9c 100644 --- a/dd_grwin32/ddgrWin32DX.cpp +++ b/dd_grwin32/ddgrWin32DX.cpp @@ -35,8 +35,8 @@ #include "ddgrWin32.h" #include "ddgrWin32DX.h" -#include "Application.h" -#include "mono.h" +#include "application.h" +#include "log.h" #include "pserror.h" tDDGRDXInternalData DDGR_DX_lib_data; @@ -67,7 +67,7 @@ bool ddgr_dx_Init(oeApplication *app) { DX_DATA(vidrefs) = 0; // reset video reference count. DX_DATA(init) = true; - mprintf(0, "DX system initialized.\n"); + LOG_DEBUG << "DX system initialized."; return true; } @@ -84,7 +84,7 @@ void ddgr_dx_Close() { DX_DATA(hPrimaryWnd) = NULL; DX_DATA(init) = false; - mprintf(0, "DX system closed.\n"); + LOG_DEBUG << "DX system closed."; } // Initializes the display for use with the DX subsystem. diff --git a/dd_grwin32/ddgrWin32GDI.cpp b/dd_grwin32/ddgrWin32GDI.cpp index 512f6ab5..6016b202 100644 --- a/dd_grwin32/ddgrWin32GDI.cpp +++ b/dd_grwin32/ddgrWin32GDI.cpp @@ -75,8 +75,8 @@ #include "ddgrWin32.h" #include "ddgrWin32GDI.h" -#include "Application.h" -#include "mono.h" +#include "application.h" +#include "log.h" #include "pserror.h" #include "gr.h" @@ -148,7 +148,7 @@ bool ddgr_gdi_Init(oeApplication *app, bool fullscreen, bool ddraw) { GDI_DATA(vidrefs) = 0; // reset video reference count. GDI_DATA(init) = true; - mprintf(0, "GDI system initialized.\n"); + LOG_DEBUG << "GDI system initialized."; return true; } @@ -183,7 +183,7 @@ void ddgr_gdi_Close() { GDI_DATA(hPrimaryWnd) = NULL; GDI_DATA(init) = false; - mprintf(0, "GDI system closed.\n"); + LOG_DEBUG << "GDI system closed."; } // ---------------------------------------------------------------------------