removed temporary NET_PollSockets()

This commit is contained in:
pierre%netscape.com 1998-09-05 08:10:15 +00:00
Родитель edfac0aa55
Коммит 9913eb98e3
1 изменённых файлов: 19 добавлений и 4 удалений

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

@ -19,7 +19,6 @@
#include "nsMacMessagePump.h"
#include "nsWindow.h"
#include <LPeriodical.h>
#include "net.h" //¥¥¥TEMPORARY
#define IsUserWindow(wp) (wp && ((((WindowPeek)wp)->windowKind) >= userKind))
@ -73,8 +72,6 @@ unsigned char evtype;
{
haveevent = ::WaitNextEvent(everyEvent,&theevent,sleep,0l);
NET_PollSockets(); //¥¥¥TEMPORARY
if(haveevent)
{
switch(theevent.what)
@ -175,6 +172,8 @@ WindowPtr whichwindow;
nsWindow *thewindow;
nsRect rect;
RgnHandle updateregion;
Rect bounds;
nsPaintEvent pevent;
::GetPort(&curport);
whichwindow = (WindowPtr)aTheEvent->message;
@ -189,7 +188,23 @@ RgnHandle updateregion;
{
updateregion = whichwindow->visRgn;
thewindow->DoPaintWidgets(updateregion);
}
bounds = (**updateregion).rgnBBox;
rect.x = bounds.left;
rect.y = bounds.top;
rect.width = bounds.left + (bounds.right-bounds.left);
rect.height = bounds.top + (bounds.bottom-bounds.top);
// generate a paint event
pevent.message = NS_PAINT;
pevent.widget = thewindow;
pevent.eventStructType = NS_PAINT_EVENT;
pevent.point.x = 0;
pevent.point.y = 0;
pevent.rect = &rect;
pevent.time = 0;
thewindow->OnPaint(pevent);
}
EndUpdate(whichwindow);
}