~ubuntu-branches/ubuntu/utopic/flwm/utopic

« back to all changes in this revision

Viewing changes to Rotated.C

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2005-04-08 12:37:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050408123728-wnbw3utqy45nlanx
Tags: 1.00-7
* Rebuild with g++ with correct ABI.
* Add Fl::visible_focus(0) in initialize(). This should fix
  Alt-Enter with GNOME2 apps. Closes: #246090. Thanks Duncan Sargeant
* Ship the menu-method not executable in the tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    /* font needs rotation ... */
117
117
    /* loop through each character ... */
118
118
    for (ichar = min_char; ichar <= max_char; ichar++) {
 
119
      XCharStruct *charstruct;
119
120
 
120
121
      index = ichar-fontstruct->min_char_or_byte2;
121
 
 
 
122
 
 
123
      if (fontstruct->per_char) {
 
124
        charstruct = &fontstruct->per_char[index];
 
125
      } else {
 
126
        charstruct = &fontstruct->min_bounds;
 
127
      }
 
128
 
122
129
      /* per char dimensions ... */
123
130
      ascent =   rotfont->per_char[ichar].ascent = 
124
 
        fontstruct->per_char[index].ascent;
 
131
        charstruct->ascent;
125
132
      descent =  rotfont->per_char[ichar].descent = 
126
 
        fontstruct->per_char[index].descent;
 
133
        charstruct->descent;
127
134
      lbearing = rotfont->per_char[ichar].lbearing = 
128
 
        fontstruct->per_char[index].lbearing;
 
135
        charstruct->lbearing;
129
136
      rbearing = rotfont->per_char[ichar].rbearing = 
130
 
        fontstruct->per_char[index].rbearing;
 
137
        charstruct->rbearing;
131
138
      rotfont->per_char[ichar].width = 
132
 
        fontstruct->per_char[index].width;
 
139
        charstruct->width;
133
140
 
134
141
      /* some space chars have zero body, but a bitmap can't have ... */
135
142
      if (!ascent && !descent)