mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
use rint instead of round to avoid warnings
This commit is contained in:
parent
7e8796fb70
commit
06a6edc905
@ -245,8 +245,8 @@ printf("**** created drag ref %ld\n", theDragRef);
|
||||
// see it if you're paying attention, but who pays such close attention?
|
||||
Rect dragRect;
|
||||
::GetRegionBounds(theDragRgn, &dragRect);
|
||||
theEvent.where.v = round(dragRect.top + (dragRect.bottom - dragRect.top) / 2);
|
||||
theEvent.where.h = round(dragRect.left + (dragRect.right - dragRect.left) / 2);
|
||||
theEvent.where.v = rint(dragRect.top + (dragRect.bottom - dragRect.top) / 2);
|
||||
theEvent.where.h = rint(dragRect.left + (dragRect.right - dragRect.left) / 2);
|
||||
|
||||
// register drag send proc which will call us back when asked for the actual
|
||||
// flavor data (instead of placing it all into the drag manager)
|
||||
|
Loading…
x
Reference in New Issue
Block a user