Changeset 6c0adbc in mainline for kernel/genarch/src/fb/fb.c


Ignore:
Timestamp:
2008-12-24T13:58:38Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7217199
Parents:
404464a
Message:

fix console overdrawing when is logo on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/fb/fb.c

    r404464a r6c0adbc  
    220220static void screen_scroll(void)
    221221{
    222         if (ylogo > 0)
     222        if (ylogo > 0) {
    223223                logo_hide();
     224                return;
     225        }
    224226       
    225227        unsigned int row;
     
    392394        }
    393395       
    394         if (ROW2Y(rowtrim) < yres) {
     396        if (ROW2Y(rowtrim) + ylogo < yres) {
    395397                unsigned int y;
    396398               
    397                 for (y = ROW2Y(rowtrim); y < yres; y++)
     399                for (y = ROW2Y(rowtrim) + ylogo; y < yres; y++)
    398400                        memcpy(&fb_addr[FB_POS(0, y)], bgscan, bgscanbytes);
    399401        }
Note: See TracChangeset for help on using the changeset viewer.