- if (P_TOPRIGHT[0] < (c->xmin << shift))
- P_TOPRIGHT[0] = c->xmin << shift;
- if (P_TOPRIGHT[1] > (c->ymax << shift))
- P_TOPRIGHT[1] = c->ymax << shift;
+ if (P_TOPRIGHT[0] < (c->xmin * (1 << shift)))
+ P_TOPRIGHT[0] = c->xmin * (1 << shift);
+ if (P_TOPRIGHT[1] > (c->ymax * (1 << shift)))
+ P_TOPRIGHT[1] = c->ymax * (1 << shift);