Changeset 140


Ignore:
Timestamp:
12/04/07 22:55:47 (5 years ago)
Author:
saua
Message:

use the Status Font for messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gui/MainCanvas.java

    r130 r140  
    3333import org.bbtracker.mobile.BBTracker; 
    3434import org.bbtracker.mobile.Log; 
     35import org.bbtracker.mobile.Preferences; 
    3536import org.bbtracker.mobile.TrackListener; 
    3637import org.bbtracker.mobile.TrackManager; 
     
    163164 
    164165                if (statusMessageEndTime > System.currentTimeMillis()) { 
    165                         final Font font = Font.getDefaultFont(); 
     166                        final Font font = Preferences.getInstance().getStatusFont(); 
    166167                        final int stringWidth = font.stringWidth(statusMessage); 
    167                         final int stringHeight = g.getFont().getHeight(); 
     168                        final int stringHeight = font.getHeight(); 
    168169 
    169170                        g.setFont(font); 
Note: See TracChangeset for help on using the changeset viewer.