Index: wp/ap/cocoa/ap_CocoaLeftRuler.mm =================================================================== RCS file: /cvsroot/abi/src/wp/ap/cocoa/ap_CocoaLeftRuler.mm,v retrieving revision 1.17 diff -c -r1.17 ap_CocoaLeftRuler.mm *** wp/ap/cocoa/ap_CocoaLeftRuler.mm 1 Mar 2004 23:12:39 -0000 1.17 --- wp/ap/cocoa/ap_CocoaLeftRuler.mm 4 Oct 2004 23:38:02 -0000 *************** *** 125,140 **** if (!pCocoaLeftRuler) return false; - UT_Rect rClip; - rClip.left = (UT_sint32)aRect->origin.x; - rClip.top = (UT_sint32)aRect->origin.y; - rClip.width = (UT_sint32)aRect->size.width; - rClip.height = (UT_sint32)aRect->size.height; xxx_UT_DEBUGMSG(("Cocoa in leftruler expose painting area: left=%d, top=%d, width=%d, height=%d\n", rClip.left, rClip.top, rClip.width, rClip.height)); if(pG != NULL) { ! // pCocoaLeftRuler->getGraphics()->doRepaint(&rClip); ! pCocoaLeftRuler->draw(&rClip); } else { return false; --- 125,139 ---- if (!pCocoaLeftRuler) return false; xxx_UT_DEBUGMSG(("Cocoa in leftruler expose painting area: left=%d, top=%d, width=%d, height=%d\n", rClip.left, rClip.top, rClip.width, rClip.height)); if(pG != NULL) { ! UT_Rect rClip; ! rClip.left = (UT_sint32)rint(pG->tluD(aRect->origin.x)); ! rClip.top = (UT_sint32)rint(pG->tluD(aRect->origin.y)); ! rClip.width = (UT_sint32)rint(pG->tluD(aRect->size.width)); ! rClip.height = (UT_sint32)rint(pG->tluD(aRect->size.height)); ! pCocoaLeftRuler->draw(&rClip); } else { return false; *************** *** 172,178 **** NSRect bounds = [[notif object] bounds]; _xap->setWidth(lrintf(bounds.size.width)); _xap->setHeight(lrintf(bounds.size.height)); - _xap->draw(NULL); } - (void)mouseDown:(NSEvent *)theEvent from:(id)sender --- 171,176 ----