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:
pierre%netscape.com 1999-08-06 05:22:31 +00:00
Родитель 0ef447e816
Коммит 932fb88b4b
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -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;