Author: mcayland Date: Sat Jul 27 12:14:47 2013 New Revision: 1183 URL: http://tracker.coreboot.org/trac/openbios/changeset/1183
Log: video_common.c: remove the video_get_res() function
Now that we've unified the video variables between C and Forth, there is no need to have a dedicated C function to return the current dimensions.
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 trunk/openbios-devel/packages/molvideo.c
Modified: trunk/openbios-devel/include/libopenbios/video.h ============================================================================== --- trunk/openbios-devel/include/libopenbios/video.h Sat Jul 27 12:14:44 2013 (r1182) +++ trunk/openbios-devel/include/libopenbios/video.h Sat Jul 27 12:14:47 2013 (r1183) @@ -23,7 +23,6 @@ void init_video(void); unsigned long video_get_color(int col_ind); void video_set_color(int ind, unsigned long color); -int video_get_res(int *w, int *h); 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:44 2013 (r1182) +++ trunk/openbios-devel/libopenbios/video_common.c Sat Jul 27 12:14:47 2013 (r1183) @@ -69,18 +69,6 @@ #endif }
-int -video_get_res( int *w, int *h ) -{ - if( !video.has_video ) { - *w = *h = 0; - return -1; - } - *w = VIDEO_DICT_VALUE(video.w); - *h = VIDEO_DICT_VALUE(video.h); - return 0; -} - /* ( fbaddr maskaddr width height fgcolor bgcolor -- ) */
void
Modified: trunk/openbios-devel/packages/molvideo.c ============================================================================== --- trunk/openbios-devel/packages/molvideo.c Sat Jul 27 12:14:44 2013 (r1182) +++ trunk/openbios-devel/packages/molvideo.c Sat Jul 27 12:14:47 2013 (r1183) @@ -44,10 +44,8 @@ static void molvideo_dimensions( void ) { - int w, h; - (void) video_get_res( &w, &h ); - PUSH( w ); - PUSH( h ); + fword("screen-width"); + fword("screen-height"); }
/* ( table start count -- ) (?) */