mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Convert dd_grwin32 to use new logging facility
This commit is contained in:
parent
9d2aaf12f2
commit
76d0711aa3
@ -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})
|
||||
|
@ -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.
|
||||
|
@ -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.";
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user