Changeset 38 for trunk/src/helpers/gpih.c
- Timestamp:
- Feb 17, 2001, 3:03:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/gpih.c
r29 r38 5 5 * 6 6 * Usage: All PM programs. 7 *8 * A word about GPI rectangles: In general, graphics operations9 * involving device coordinates (such as regions, bit maps and10 * bit blts, and window management) use inclusive-exclusive11 * rectangles. All other graphics operations, such as GPI12 * functions that define paths, use inclusive-inclusive rectangles.13 *14 * This can be a problem with mixing Win and Gpi functions. For15 * example, WinQueryWindowRect returns an inclusive-exclusive16 * rectangle (so that the xRight value is the same as the window17 * width -- tested V0.9.7 (2000-12-20) [umoeller]).18 *19 * WinFillRect expects an inclusive-exclusive rectangle, so it20 * will work with a rectangle from WinQueryWindowRect directly.21 *22 * By contrast, the GpiBox expects an inclusive-inclusive rectangle.23 7 * 24 8 * Function prefixes (new with V0.81): … … 87 71 */ 88 72 73 /* 74 *@@gloss: GPI_rectangles GPI rectangles 75 * OS/2 PM (and GPI) uses two types of rectangles. This is rarely 76 * mentioned in the documentation, so a word is in order here. 77 * 78 * In general, graphics operations 79 * involving device coordinates (such as regions, bit maps and 80 * bit blts, and window management) use inclusive-exclusive 81 * rectangles. All other graphics operations, such as GPI 82 * functions that define paths, use inclusive-inclusive rectangles. 83 * 84 * This can be a problem with mixing Win and Gpi functions. For 85 * example, WinQueryWindowRect returns an inclusive-exclusive 86 * rectangle (so that the xRight value is the same as the window 87 * width -- tested V0.9.7 (2000-12-20) [umoeller]). 88 * 89 * WinFillRect expects an inclusive-exclusive rectangle, so it 90 * will work with a rectangle from WinQueryWindowRect directly. 91 * 92 * By contrast, the GpiBox expects an inclusive-inclusive rectangle. 93 */ 94 89 95 /* ****************************************************************** 90 96 * … … 187 193 * 188 194 * The specified rectangle is inclusive, that is, the top 189 * right corner specifies the top right pixel to be drawn. 195 * right corner specifies the top right pixel to be drawn 196 * (see @GPI_rectangles). 190 197 * 191 198 * This sets the current position to the bottom left corner … … 223 230 * The specified rectangle is inclusive, that is, the top 224 231 * right corner specifies the top right pixel to be drawn. 225 * This is different from WinFillRect. 232 * This is different from WinFillRect 233 * (see @GPI_rectangles). 226 234 * 227 235 * If (lColor != -1), the HPS's current foreground color … … 294 302 * The specified rectangle is inclusive, that is, the top 295 303 * right corner specifies the top right pixel to be drawn. 296 * This is different from WinFillRect. 304 * This is different from WinFillRect 305 * (see @GPI_rectangles). 297 306 * 298 307 * If usWidth > 1, the additional pixels will be drawn towards … … 341 350 * The specified rectangle is inclusive, that is, the top 342 351 * right corner specifies the top right pixel to be drawn. 343 * This is different from WinFillRect. 352 * This is different from WinFillRect 353 * (see @GPI_rectangles). 344 354 * 345 355 * If usWidth > 1, the additional pixels will be drawn towards
Note:
See TracChangeset
for help on using the changeset viewer.