1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Minor code clean-ups.

This commit is contained in:
Julian Storer 2010-08-09 21:47:08 +01:00
parent a9c2f2c69e
commit 23e07daec7
23 changed files with 1736 additions and 1782 deletions

View file

@ -81,7 +81,6 @@ public:
HGLRC contextToShareWith,
const OpenGLPixelFormat& pixelFormat)
: renderContext (0),
nativeWindow (0),
dc (0),
component (component_)
{
@ -117,7 +116,7 @@ public:
{
deleteContext();
ReleaseDC ((HWND) nativeWindow->getNativeHandle(), dc);
delete nativeWindow;
nativeWindow = 0;
}
void deleteContext()
@ -270,7 +269,7 @@ public:
// old one and create a new one..
jassert (nativeWindow != 0);
ReleaseDC ((HWND) nativeWindow->getNativeHandle(), dc);
delete nativeWindow;
nativeWindow = 0;
createNativeWindow();
@ -385,7 +384,7 @@ public:
HGLRC renderContext;
private:
Win32ComponentPeer* nativeWindow;
ScopedPointer<Win32ComponentPeer> nativeWindow;
Component* const component;
HDC dc;