~ubuntu-branches/ubuntu/breezy/gnustep-back/breezy

« back to all changes in this revision

Viewing changes to Source/winlib/WIN32GState.m

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-11 17:46:38 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050911174638-whgm4rc8lm89bu39
Tags: 0.9.5-1ubuntu1
* GL/GLU Transitions
* Remove build-dep for libdps-dev (Deprecated)

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    wscolor = RGB(color.field[0]*255, color.field[1]*255, color.field[2]*255);
181
181
}
182
182
 
 
183
static inline
 
184
RECT GSXWindowRectToMS(WIN32GState *s, NSRect r)
 
185
{
 
186
  RECT r1;
 
187
  int h;
 
188
 
 
189
  h = WindowHeight([s window]);
 
190
 
 
191
//  r.origin.x += s->offset.x;
 
192
//  r.origin.y += s->offset.y;
 
193
 
 
194
  r1.left = r.origin.x;
 
195
  r1.right = r.origin.x + r.size.width;
 
196
  r1.bottom = h - r.origin.y;
 
197
  r1.top = h - r.origin.y - r.size.height;
 
198
 
 
199
  return r1;
 
200
}
 
201
 
183
202
- (void) _compositeGState: (WIN32GState *) source
184
203
                 fromRect: (NSRect) sourceRect
185
204
                  toPoint: (NSPoint) destPoint
200
219
              NSStringFromRect(sourceRect), NSStringFromPoint(destPoint), op);
201
220
 
202
221
  rectFrom = GSViewRectToWin(source, sourceRect);
 
222
  //rectFrom = GSXWindowRectToMS(sourceRect);
203
223
  h = rectFrom.bottom - rectFrom.top;
204
224
 
205
225
  destRect.size = sourceRect.size;