From 66a9ec0adf1295dc52b3185eac3bccce932f965c Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 30 May 2017 16:32:43 +0100 Subject: [PATCH] BLOCKS: fixed a potential crash in BLOCKS sample code --- examples/BLOCKS/BlocksDrawing/Source/Main.cpp | 2 +- examples/BLOCKS/BlocksMonitor/Source/Main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/BLOCKS/BlocksDrawing/Source/Main.cpp b/examples/BLOCKS/BlocksDrawing/Source/Main.cpp index bdd713ac7f..4039ef684f 100644 --- a/examples/BLOCKS/BlocksDrawing/Source/Main.cpp +++ b/examples/BLOCKS/BlocksDrawing/Source/Main.cpp @@ -47,7 +47,7 @@ public: { public: MainWindow (String name) : DocumentWindow (name, - getLookAndFeel().findColour (ResizableWindow::backgroundColourId), + LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId), DocumentWindow::allButtons) { setUsingNativeTitleBar (true); diff --git a/examples/BLOCKS/BlocksMonitor/Source/Main.cpp b/examples/BLOCKS/BlocksMonitor/Source/Main.cpp index 5831468d89..7366f910f2 100644 --- a/examples/BLOCKS/BlocksMonitor/Source/Main.cpp +++ b/examples/BLOCKS/BlocksMonitor/Source/Main.cpp @@ -47,7 +47,7 @@ public: { public: MainWindow (String name) : DocumentWindow (name, - getLookAndFeel().findColour (ResizableWindow::backgroundColourId), + LookAndFeel::getDefaultLookAndFeel().findColour (ResizableWindow::backgroundColourId), DocumentWindow::allButtons) { setUsingNativeTitleBar (true);