зеркало из https://github.com/mozilla/pjs.git
Re-enabled the live-resizing just to see if people like it better now because the rendering is much faster.
This commit is contained in:
Родитель
0ef447e816
Коммит
932fb88b4b
|
@ -63,7 +63,7 @@
|
|||
#include "macstdlibextras.h"
|
||||
#endif
|
||||
|
||||
#define DRAW_ON_RESIZE 1 // if 1, debug builds draw on resize when the command key is down
|
||||
#define DRAW_ON_RESIZE 1 // if 1, enable live-resize except when the command key is down
|
||||
|
||||
const short kMinWindowWidth = 300;
|
||||
const short kMinWindowHeight = 150;
|
||||
|
@ -445,11 +445,11 @@ void nsMacMessagePump::DoMouseDown(EventRecord &anEvent)
|
|||
::SetPort(whichWindow);
|
||||
#endif
|
||||
|
||||
#if DEBUG
|
||||
Boolean drawOnResize = (DRAW_ON_RESIZE && ((anEvent.modifiers & cmdKey) != 0));
|
||||
#else
|
||||
Boolean drawOnResize = false;
|
||||
#endif
|
||||
//#if DEBUG
|
||||
Boolean drawOnResize = (DRAW_ON_RESIZE && ((anEvent.modifiers & cmdKey) == 0));
|
||||
//#else
|
||||
// Boolean drawOnResize = false;
|
||||
//#endif
|
||||
if (drawOnResize)
|
||||
{
|
||||
Point oldPt = anEvent.where;
|
||||
|
|
Загрузка…
Ссылка в новой задаче