зеркало из https://github.com/mozilla/gecko-dev.git
removed temporary NET_PollSockets()
This commit is contained in:
Родитель
edfac0aa55
Коммит
9913eb98e3
|
@ -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 = ▭
|
||||
pevent.time = 0;
|
||||
thewindow->OnPaint(pevent);
|
||||
}
|
||||
EndUpdate(whichwindow);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче