Remove test of always-true condition
This commit is contained in:
@@ -376,7 +376,7 @@ wxGLAttributes& wxGLAttributes::Level(int val)
|
|||||||
AddAttribute(WGL_NUMBER_OVERLAYS_ARB);
|
AddAttribute(WGL_NUMBER_OVERLAYS_ARB);
|
||||||
AddAttribute(val);
|
AddAttribute(val);
|
||||||
}
|
}
|
||||||
else if ( val < 0 )
|
else
|
||||||
{
|
{
|
||||||
AddAttribute(WGL_NUMBER_UNDERLAYS_ARB);
|
AddAttribute(WGL_NUMBER_UNDERLAYS_ARB);
|
||||||
AddAttribute(-val);
|
AddAttribute(-val);
|
||||||
|
@@ -2626,7 +2626,7 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event )
|
|||||||
// moved the ordinary key event sending AFTER the accel evaluation
|
// moved the ordinary key event sending AFTER the accel evaluation
|
||||||
|
|
||||||
#if wxUSE_ACCEL
|
#if wxUSE_ACCEL
|
||||||
if ( !handled && event.GetEventType() == wxEVT_KEY_DOWN)
|
if (event.GetEventType() == wxEVT_KEY_DOWN)
|
||||||
{
|
{
|
||||||
wxWindow *ancestor = this;
|
wxWindow *ancestor = this;
|
||||||
while (ancestor)
|
while (ancestor)
|
||||||
|
Reference in New Issue
Block a user