Convert dd_grwin32 to use new logging facility

This commit is contained in:
Azamat H. Hackimov 2024-08-20 01:23:19 +03:00
parent 9d2aaf12f2
commit 76d0711aa3
3 changed files with 9 additions and 8 deletions

View File

@ -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})

View File

@ -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.

View File

@ -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.";
}
// ---------------------------------------------------------------------------