Lines Matching full:rotation
58 static GRRotation rotation = ROTATION_NONE; variable
70 return x < 0 || x >= (rotation % 2 ? gr_draw->height : gr_draw->width) || y < 0 || in outside()
71 y >= (rotation % 2 ? gr_draw->width : gr_draw->height); in outside()
104 // increments pixel pointer right, with current rotation.
107 if (rotation % 2) { in incr_x()
108 *p = *p + (rotation == 1 ? 1 : -1) * row_pixels; in incr_x()
110 *p = *p + (rotation ? -1 : 1); in incr_x()
114 // increments pixel pointer down, with current rotation.
117 if (rotation % 2) { in incr_y()
118 *p = *p + (rotation == 1 ? -1 : 1); in incr_y()
120 *p = *p + (rotation ? -1 : 1) * row_pixels; in incr_y()
124 // returns pixel pointer at given coordinates with rotation adjustment.
127 switch (rotation) { in pixel_at()
138 LOGW("invalid rotation %d", rotation); in pixel_at()
300 if (rotation) { in gr_blit()
517 return rotation % 2 ? gr_draw->height - 2 * overscan_offset_y in gr_fb_width()
525 return rotation % 2 ? gr_draw->width - 2 * overscan_offset_x in gr_fb_height()
536 rotation = rot; in gr_rotate()