Skip to content

Commit

Permalink
Merge branch 'master' into myocpn
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakansv committed Dec 19, 2024
2 parents 24fb37a + 5c51c25 commit dcd5ac0
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 49 deletions.
9 changes: 2 additions & 7 deletions gui/include/gui/dychart.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,8 @@
// Some Memory Leak Detection Code
//------------------------------------------------------------------------------

#ifdef __MSVC__
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

//----------------------------------------------------------------------------
Expand Down
8 changes: 2 additions & 6 deletions gui/src/chcanv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,8 @@
#include "glChartCanvas.h"
#endif

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#ifndef __WXMSW__
Expand Down
8 changes: 2 additions & 6 deletions gui/src/cm93.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,8 @@
extern ocpnGLOptions g_GLOptions;
#endif

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

extern CM93OffsetDialog *g_pCM93OffsetDialog;
Expand Down
1 change: 1 addition & 0 deletions gui/src/glChartCanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4554,6 +4554,7 @@ void glChartCanvas::Render() {
g_pi_manager->SendViewPortToRequestingPlugIns(vp);
g_pi_manager->RenderAllGLCanvasOverlayPlugIns(
m_pcontext, vp, m_pParentCanvas->m_canvasIndex, OVERLAY_OVER_UI);
glActiveTexture(GL_TEXTURE0);
}

// quiting?
Expand Down
8 changes: 2 additions & 6 deletions gui/src/ocpn_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,12 +677,8 @@ DEFINE_GUID(GARMIN_DETECT_GUID, 0x2c9c45c2L, 0x8e7d, 0x4c08, 0xa1, 0x2d, 0x81,
0x6b, 0xba, 0xe7, 0x22, 0xc0);
#endif

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#if !defined(NAN)
Expand Down
8 changes: 2 additions & 6 deletions gui/src/ocpn_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,8 @@ DWORD color_inactiveborder;

#endif

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#if !defined(NAN)
Expand Down
8 changes: 2 additions & 6 deletions gui/src/s57chart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,8 @@
#include "Quilt.h"
#include "ocpn_frame.h"

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#ifdef ocpnUSE_GL
Expand Down
8 changes: 2 additions & 6 deletions gui/src/s57obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,8 @@

#include "Osenc.h"

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#ifdef ocpnUSE_GL
Expand Down
8 changes: 2 additions & 6 deletions gui/src/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,8 @@

#include "ais.h"

#ifdef __MSVC__
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new (_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#ifdef __VISUALC__
#include <wx/msw/msvcrt.h>
#endif

#ifndef __WXMSW__
Expand Down

0 comments on commit dcd5ac0

Please sign in to comment.