Changeset 3598 for trunk/src/opengl/mesa/zoom.c
- Timestamp:
- May 23, 2000, 10:41:28 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/zoom.c
r2938 r3598 1 /* $Id: zoom.c,v 1. 1 2000-02-29 00:50:16 sandervlExp $ */1 /* $Id: zoom.c,v 1.2 2000-05-23 20:41:08 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 32 32 #include "all.h" 33 33 #else 34 #ifndef XFree86Server 35 #include <assert.h> 36 #else 37 #include "GL/xf86glx.h" 38 #endif 34 #include "glheader.h" 39 35 #include "macros.h" 40 36 #include "span.h" … … 64 60 GLubyte zrgba[MAX_WIDTH][4]; /* zoomed pixel colors */ 65 61 GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */ 66 GLint maxwidth = MIN2( ctx-> Buffer->Width, MAX_WIDTH );62 GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH ); 67 63 const GLuint *srcRGBA32 = (const GLuint *) rgba; 68 64 GLuint *dstRGBA32 = (GLuint *) zrgba; … … 96 92 return; 97 93 } 98 if (r0>=ctx-> Buffer->Height && r1>=ctx->Buffer->Height) {94 if (r0>=ctx->DrawBuffer->Height && r1>=ctx->DrawBuffer->Height) { 99 95 /* above window */ 100 96 return; … … 115 111 } 116 112 117 assert( m <= MAX_WIDTH );113 ASSERT( m <= MAX_WIDTH ); 118 114 119 115 /* zoom the span horizontally */ … … 154 150 GLubyte zrgba[MAX_WIDTH][4]; /* zoomed pixel colors */ 155 151 GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */ 156 GLint maxwidth = MIN2( ctx-> Buffer->Width, MAX_WIDTH );152 GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH ); 157 153 158 154 /* compute width of output row */ … … 184 180 return; 185 181 } 186 if (r0>=ctx-> Buffer->Height && r1>=ctx->Buffer->Height) {182 if (r0>=ctx->DrawBuffer->Height && r1>=ctx->DrawBuffer->Height) { 187 183 /* above window */ 188 184 return; … … 203 199 } 204 200 205 assert( m <= MAX_WIDTH );201 ASSERT( m <= MAX_WIDTH ); 206 202 207 203 /* zoom the span horizontally */ … … 251 247 GLuint zindexes[MAX_WIDTH]; /* zoomed color indexes */ 252 248 GLdepth zdepth[MAX_WIDTH]; /* zoomed depth values */ 253 GLint maxwidth = MIN2( ctx-> Buffer->Width, MAX_WIDTH );249 GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH ); 254 250 255 251 /* compute width of output row */ … … 281 277 return; 282 278 } 283 if (r0>=ctx-> Buffer->Height && r1>=ctx->Buffer->Height) {279 if (r0>=ctx->DrawBuffer->Height && r1>=ctx->DrawBuffer->Height) { 284 280 /* above window */ 285 281 return; … … 300 296 } 301 297 302 assert( m <= MAX_WIDTH );298 ASSERT( m <= MAX_WIDTH ); 303 299 304 300 /* zoom the span horizontally */ … … 341 337 GLint i, j, skipcol; 342 338 GLstencil zstencil[MAX_WIDTH]; /* zoomed stencil values */ 343 GLint maxwidth = MIN2( ctx-> Buffer->Width, MAX_WIDTH );339 GLint maxwidth = MIN2( ctx->DrawBuffer->Width, MAX_WIDTH ); 344 340 345 341 /* compute width of output row */ … … 371 367 return; 372 368 } 373 if (r0>=ctx-> Buffer->Height && r1>=ctx->Buffer->Height) {369 if (r0>=ctx->DrawBuffer->Height && r1>=ctx->DrawBuffer->Height) { 374 370 /* above window */ 375 371 return; … … 390 386 } 391 387 392 assert( m <= MAX_WIDTH );388 ASSERT( m <= MAX_WIDTH ); 393 389 394 390 /* zoom the span horizontally */
Note:
See TracChangeset
for help on using the changeset viewer.