From 1534795f11a06288a00acdfc64e8c171e180b958 Mon Sep 17 00:00:00 2001 From: "maxf%magma.ca" Date: Wed, 5 Oct 2005 21:44:17 +0000 Subject: [PATCH] Photon-only changes. These only affect QNX builds, which are not part of Tinderbox. Fix compile errors introduced by jst%mozilla.jstenback.com (missing parenthesis) and others. My QNX email address is mfeil@qnx.com. r=briane@qnx.com --- widget/src/photon/nsWidget.cpp | 2 +- widget/src/photon/nsWidget.h | 8 ++++---- widget/src/photon/nsWindow.cpp | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/widget/src/photon/nsWidget.cpp b/widget/src/photon/nsWidget.cpp index 120115fea52b..5b91ba88c4e6 100644 --- a/widget/src/photon/nsWidget.cpp +++ b/widget/src/photon/nsWidget.cpp @@ -1084,7 +1084,7 @@ inline PRBool nsWidget::HandleEvent( PtWidget_t *widget, PtCallbackInfo_t* aCbIn case Ph_EV_PTR_MOTION_BUTTON: { PhPointerEvent_t* ptrev = (PhPointerEvent_t*) PhGetData( event ); - nsMouseEvent theMouseEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal; + nsMouseEvent theMouseEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal); if( ptrev ) { diff --git a/widget/src/photon/nsWidget.h b/widget/src/photon/nsWidget.h index 46191822c9e5..a8840c904f76 100644 --- a/widget/src/photon/nsWidget.h +++ b/widget/src/photon/nsWidget.h @@ -223,12 +223,12 @@ public: inline void InitEvent(nsGUIEvent& event, PRUint32 aEventType, nsPoint* aPoint = nsnull) { if( aPoint == nsnull ) { - event.point.x = 0; - event.point.y = 0; + event.refPoint.x = 0; + event.refPoint.y = 0; } else { - event.point.x = aPoint->x; - event.point.y = aPoint->y; + event.refPoint.x = aPoint->x; + event.refPoint.y = aPoint->y; } event.widget = this; event.time = PR_IntervalNow(); diff --git a/widget/src/photon/nsWindow.cpp b/widget/src/photon/nsWindow.cpp index 9406da80164e..0cb2dbe22b7e 100644 --- a/widget/src/photon/nsWindow.cpp +++ b/widget/src/photon/nsWindow.cpp @@ -607,8 +607,8 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aWidth, PRInt32 aHeight, PRBool aRepaint) sevent.windowSize = new nsRect (0, 0, aWidth, aHeight); - sevent.point.x = 0; - sevent.point.y = 0; + sevent.refPoint.x = 0; + sevent.refPoint.y = 0; sevent.mWinWidth = aWidth; sevent.mWinHeight = aHeight; // XXX fix this @@ -639,8 +639,8 @@ int nsWindow::WindowWMHandler( PtWidget_t *widget, void *data, PtCallbackInfo_t event.widget = win; event.time = 0; - event.point.x = 0; - event.point.y = 0; + event.refPoint.x = 0; + event.refPoint.y = 0; win->DispatchEvent(&event, status); @@ -718,8 +718,8 @@ void nsWindow::RawDrawFunc( PtWidget_t * pWidget, PhTile_t * damage ) /* Re-Setup Paint Event */ pWin->InitEvent(pev, NS_PAINT); - pev.point.x = nsDmg.x; - pev.point.y = nsDmg.y; + pev.refPoint.x = nsDmg.x; + pev.refPoint.y = nsDmg.y; pev.rect = &nsDmg; pev.region = nsnull;