• Home
  • Raw
  • Download

Lines Matching refs:disp

99 display_done( ADisplay*  disp )  in display_done()  argument
101 disp->data = NULL; in display_done()
102 disp->qfbuff = NULL; in display_done()
103 skin_image_unref( &disp->onion ); in display_done()
107 display_init( ADisplay* disp, SkinDisplay* sdisp, SkinLocation* loc, SkinRect* frame ) in display_init() argument
109 skin_rect_rotate( &disp->rect, &sdisp->rect, loc->rotation ); in display_init()
110 disp->rect.pos.x += loc->anchor.x; in display_init()
111 disp->rect.pos.y += loc->anchor.y; in display_init()
113 disp->rotation = (loc->rotation + sdisp->rotation) & 3; in display_init()
114 switch (disp->rotation) { in display_init()
116 disp->origin = disp->rect.pos; in display_init()
120 disp->origin.x = disp->rect.pos.x + disp->rect.size.w; in display_init()
121 disp->origin.y = disp->rect.pos.y; in display_init()
125 disp->origin.x = disp->rect.pos.x + disp->rect.size.w; in display_init()
126 disp->origin.y = disp->rect.pos.y + disp->rect.size.h; in display_init()
130 disp->origin.x = disp->rect.pos.x; in display_init()
131 disp->origin.y = disp->rect.pos.y + disp->rect.size.h; in display_init()
134 skin_size_rotate( &disp->datasize, &sdisp->rect.size, sdisp->rotation ); in display_init()
135 skin_rect_intersect( &disp->rect, &disp->rect, frame ); in display_init()
138 disp->rect.pos.x, disp->rect.pos.y, in display_init()
139 disp->rect.size.w, disp->rect.size.h, in display_init()
140 disp->datasize.w, disp->datasize.h); in display_init()
142 disp->qfbuff = sdisp->qfbuff; in display_init()
143 disp->data = sdisp->qfbuff->pixels; in display_init()
144 disp->onion = NULL; in display_init()
146 disp->brightness = LCD_BRIGHTNESS_DEFAULT; in display_init()
148 return (disp->data == NULL) ? -1 : 0; in display_init()
170 display_set_onion( ADisplay* disp, SkinImage* onion, SkinRotation rotation, int blend ) in display_set_onion() argument
173 SkinRect* rect = &disp->rect; in display_set_onion()
174 SkinRect* orect = &disp->onion_rect; in display_set_onion()
176 rotation = (rotation + disp->rotation) & 3; in display_set_onion()
178 skin_image_unref( &disp->onion ); in display_set_onion()
179 disp->onion = skin_image_clone_full( onion, rotation, blend ); in display_set_onion()
181 onion_w = skin_image_w(disp->onion); in display_set_onion()
182 onion_h = skin_image_h(disp->onion); in display_set_onion()
382 display_redraw_rect16( ADisplay* disp, SkinRect* rect, SDL_Surface* surface) in display_redraw_rect16() argument
384 int x = rect->pos.x - disp->rect.pos.x; in display_redraw_rect16()
385 int y = rect->pos.y - disp->rect.pos.y; in display_redraw_rect16()
388 int disp_w = disp->rect.size.w; in display_redraw_rect16()
389 int disp_h = disp->rect.size.h; in display_redraw_rect16()
392 int src_pitch = disp->datasize.w*2; in display_redraw_rect16()
393 uint8_t* src_line = (uint8_t*)disp->data; in display_redraw_rect16()
396 switch ( disp->rotation & 3 ) in display_redraw_rect16()
472 display_redraw_rect32( ADisplay* disp, SkinRect* rect,SDL_Surface* surface) in display_redraw_rect32() argument
474 int x = rect->pos.x - disp->rect.pos.x; in display_redraw_rect32()
475 int y = rect->pos.y - disp->rect.pos.y; in display_redraw_rect32()
478 int disp_w = disp->rect.size.w; in display_redraw_rect32()
479 int disp_h = disp->rect.size.h; in display_redraw_rect32()
482 int src_pitch = disp->datasize.w*4; in display_redraw_rect32()
483 uint8_t* src_line = (uint8_t*)disp->data; in display_redraw_rect32()
486 switch ( disp->rotation & 3 ) in display_redraw_rect32()
561 display_redraw( ADisplay* disp, SkinRect* rect, SDL_Surface* surface ) in display_redraw() argument
565 if (skin_rect_intersect( &r, rect, &disp->rect )) in display_redraw()
570 r.pos.x - disp->rect.pos.x, r.pos.y - disp->rect.pos.y, in display_redraw()
571 r.size.w, r.size.h, disp->rect.pos.x, disp->rect.pos.y, in display_redraw()
572 disp->rect.size.w, disp->rect.size.h, disp->datasize.w, disp->datasize.h, in display_redraw()
577 if (disp->brightness == LCD_BRIGHTNESS_OFF) in display_redraw()
583 if (disp->qfbuff->bits_per_pixel == 32) in display_redraw()
584 display_redraw_rect32(disp, &r, surface); in display_redraw()
586 display_redraw_rect16(disp, &r, surface); in display_redraw()
591 lcd_brightness_argb32( surface->pixels, &r, surface->pitch, disp->brightness ); in display_redraw()
596 if (disp->onion != NULL) { in display_redraw()
599 if ( skin_rect_intersect( &r2, &r, &disp->onion_rect ) ) { in display_redraw()
607 rs.x = rd.x - disp->onion_rect.pos.x; in display_redraw()
608 rs.y = rd.y - disp->onion_rect.pos.y; in display_redraw()
612 SDL_BlitSurface( skin_image_surface(disp->onion), &rs, surface, &rd ); in display_redraw()
908 ADisplay* disp = layout->displays + n_displays; in layout_init() local
909 display_init( disp, part->display, loc, &layout->rect ); in layout_init()
986 LAYOUT_LOOP_DISPLAYS(&window->layout,disp) in skin_window_find_finger()
987 if ( skin_rect_contains( &disp->rect, x, y ) ) { in skin_window_find_finger()
989 finger->display = disp; in skin_window_find_finger()
990 finger->pos.x = x - disp->origin.x; in skin_window_find_finger()
991 finger->pos.y = y - disp->origin.y; in skin_window_find_finger()
993 skin_pos_rotate( &finger->pos, &finger->pos, -disp->rotation ); in skin_window_find_finger()
1008 ADisplay* disp = finger->display; in skin_window_move_mouse() local
1010 int dx = x - disp->rect.pos.x; in skin_window_move_mouse()
1011 int dy = y - disp->rect.pos.y; in skin_window_move_mouse()
1017 else if (dx >= disp->rect.size.w) { in skin_window_move_mouse()
1018 dx = disp->rect.size.w - 1; in skin_window_move_mouse()
1024 } else if (dy >= disp->rect.size.h) { in skin_window_move_mouse()
1025 dy = disp->rect.size.h-1; in skin_window_move_mouse()
1029 finger->pos.x = dx + (disp->rect.pos.x - disp->origin.x); in skin_window_move_mouse()
1030 finger->pos.y = dy + (disp->rect.pos.y - disp->origin.y); in skin_window_move_mouse()
1032 skin_pos_rotate( &finger->pos, &finger->pos, -disp->rotation ); in skin_window_move_mouse()
1158 ADisplay* disp = window->layout.displays; in skin_window_show_opengles() local
1159 SkinRect drect = disp->rect; in skin_window_show_opengles()
1173 drect.size.w, drect.size.h, disp->rotation * -90.); in skin_window_show_opengles()
1420 ADisplay* disp; in skin_window_reset_internal() local
1428 disp = window->layout.displays; in skin_window_reset_internal()
1429 if (disp != NULL && window->onion) in skin_window_reset_internal()
1430 display_set_onion( disp, in skin_window_reset_internal()
1470 ADisplay* disp = window->layout.displays; in skin_window_set_lcd_brightness() local
1472 if (disp != NULL) { in skin_window_set_lcd_brightness()
1473 disp->brightness = brightness; in skin_window_set_lcd_brightness()
1513 ADisplay* disp; in skin_window_set_onion() local
1522 disp = window->layout.displays; in skin_window_set_onion()
1524 if (disp != NULL) in skin_window_set_onion()
1525 display_set_onion( disp, window->onion, onion_rotation, onion_alpha ); in skin_window_set_onion()
1576 ADisplay* disp = layout->displays; in skin_window_redraw() local
1577 ADisplay* end = disp + layout->num_displays; in skin_window_redraw()
1578 for ( ; disp < end; disp++ ) in skin_window_redraw()
1579 display_redraw( disp, rect, window->surface ); in skin_window_redraw()
1624 ADisplay* disp = window->layout.displays; in skin_window_get_display() local
1626 if (disp != NULL) { in skin_window_get_display()
1627 info->width = disp->datasize.w; in skin_window_get_display()
1628 info->height = disp->datasize.h; in skin_window_get_display()
1629 info->rotation = disp->rotation; in skin_window_get_display()
1630 info->data = disp->data; in skin_window_get_display()
1750 ADisplay* disp = skin_window_display(window); in skin_window_update_display() local
1755 if (disp != NULL) { in skin_window_update_display()
1762 skin_rect_rotate( &r, &r, disp->rotation ); in skin_window_update_display()
1763 r.pos.x += disp->origin.x; in skin_window_update_display()
1764 r.pos.y += disp->origin.y; in skin_window_update_display()
1769 display_redraw( disp, &r, window->surface ); in skin_window_update_display()