~ubuntu-branches/ubuntu/wily/xmoto/wily-proposed

« back to all changes in this revision

Viewing changes to src/GUIStatic.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-09-14 21:01:20 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060914210120-bvr7yu9rafb3fivp
Tags: 0.2.1-1
* New upstream release.
* Removed manpages and desktop files from the Debian package as they are now
  provided upstream.
* Make the package binNMUable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
  Painting
32
32
  ===========================================================================*/
33
33
  void UIStatic::paint(void) {  
34
 
    /* Darken background? */
35
 
    if(m_bBackgroundShade) {
36
 
      putImage(0,0,getPosition().nWidth,getPosition().nHeight,m_pDarkBlobTexture);
37
 
    }
 
34
    if(isUglyMode() == false) {
 
35
      /* Darken background? */
 
36
      if(m_bBackgroundShade) {
 
37
        putImage(0,0,getPosition().nWidth,getPosition().nHeight,m_pDarkBlobTexture);
 
38
      }
38
39
    
39
 
    /* Background image? */
40
 
    if(m_pCustomBackgroundTexture != NULL) {
41
 
      putImage(0,0,getPosition().nWidth,getPosition().nHeight,m_pCustomBackgroundTexture);    
42
 
    }    
43
 
  
 
40
      /* Background image? */
 
41
      if(m_pCustomBackgroundTexture != NULL) {
 
42
        putImage(0,0,getPosition().nWidth,getPosition().nHeight,m_pCustomBackgroundTexture);    
 
43
      }    
 
44
    }  
 
45
 
44
46
    /* Determine text size */
45
47
    int x1,y1,x2,y2,x=0,y=0;  
46
48
    
61
63
    else if(getVAlign() == UI_ALIGN_CENTER)
62
64
      y = getPosition().nHeight/2 - (y2-y1)/2 - y1;
63
65
    
64
 
    putText(x,y,getCaption());
 
66
    putText(x,y, getCaption());
65
67
  }
66
68
 
67
 
};
 
69
}
68
70