j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: mcayland Date: Sat Jul 27 12:14:32 2013 New Revision: 1178 URL: http://tracker.coreboot.org/trac/openbios/changeset/1178
Log: video_common.c: remove video_scroll1() and draw_pixel() as they are no longer needed
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/include/libopenbios/video.h trunk/openbios-devel/libopenbios/video_common.c
Modified: trunk/openbios-devel/include/libopenbios/video.h ============================================================================== --- trunk/openbios-devel/include/libopenbios/video.h Sat Jul 27 12:14:29 2013 (r1177) +++ trunk/openbios-devel/include/libopenbios/video.h Sat Jul 27 12:14:32 2013 (r1178) @@ -3,8 +3,6 @@ unsigned long get_color(int col_ind); void set_color(int ind, unsigned long color); int video_get_res(int *w, int *h); -void draw_pixel(int x, int y, int colind); -void video_scroll(int height); void video_mask_blit(void); void video_invert_rect(void); void video_fill_rect(void);
Modified: trunk/openbios-devel/libopenbios/video_common.c ============================================================================== --- trunk/openbios-devel/libopenbios/video_common.c Sat Jul 27 12:14:29 2013 (r1177) +++ trunk/openbios-devel/libopenbios/video_common.c Sat Jul 27 12:14:32 2013 (r1178) @@ -184,47 +184,6 @@ } }
-void -draw_pixel( int x, int y, int colind ) -{ - char *p = (char*)video.fb.mvirt + video.fb.rb * y; - int color, d = video.fb.depth; - - if( x < 0 || y < 0 || x >= video.fb.w || y >=video.fb.h ) - return; - color = get_color( colind ); - - if( d >= 24 ) - *((unsigned long*)p + x) = color; - else if( d >= 15 ) - *((short*)p + x) = color; - else - *(p + x) = color; -} - -void -video_scroll( int height ) -{ - int i, offs, size, *dest, *src; - - if (height <= 0 || height >= video.fb.h) { - return; - } - offs = video.fb.rb * height; - size = (video.fb.h * video.fb.rb - offs)/16; - dest = (int*)video.fb.mvirt; - src = (int*)(video.fb.mvirt + offs); - - for( i=0; i<size; i++ ) { - dest[0] = src[0]; - dest[1] = src[1]; - dest[2] = src[2]; - dest[3] = src[3]; - dest += 4; - src += 4; - } -} - /* ( color_ind x y width height -- ) (?) */ void video_fill_rect(void)