Changeset 36470
- Timestamp:
- Feb 1, 2014, 6:07:03 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20131211/Ohana/src
- Files:
-
- 2 edited
-
kapa2/src/bDrawObjects.c (modified) (11 diffs)
-
libkapa/src/bDrawFuncs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20131211/Ohana/src/kapa2/src/bDrawObjects.c
r35416 r36470 315 315 D = scaleSize ? dz*z[i] : ds; 316 316 FillRectangle (buffer, sx, sy, 2*D, 2*D); 317 // plot range saturated by bDrawRectFill 317 318 } 318 319 } … … 335 336 D = scaleSize ? dz*z[i] : ds; 336 337 DrawRectangle (buffer, sx, sy, 2*D, 2*D); 338 // plot range saturated by bDrawRectOpen 337 339 } 338 340 } … … 356 358 DrawLine (buffer, sx - D, sy, sx + D, sy); 357 359 DrawLine (buffer, sx, sy - D, sx, sy + D); 360 // out-of-range points skipped by bDrawPoint 358 361 } 359 362 } … … 377 380 DrawLine (buffer, sx + D, sy - D, sx - D, sy + D); 378 381 DrawLine (buffer, sx - D, sy - D, sx + D, sy + D); 382 // out-of-range points skipped by bDrawPoint 379 383 } 380 384 } … … 398 402 // FillTriangle (buffer, sx - D, sy - 0.58*D, sx + D, sy - 0.58*D, sx, sy + 1.15*D); 399 403 FillTriangle (buffer, sx, sy + 0.58*D, D, -1.73*D); 404 // out-of-range points skipped by bDrawPoint 400 405 } 401 406 } … … 418 423 D = scaleSize ? dz*z[i] : ds; 419 424 OpenTriangle (buffer, sx - D, sy + 0.58*D, sx + D, sy + 0.58*D, sx, sy - 1.15*D); 425 // out-of-range points skipped by bDrawPoint 420 426 } 421 427 } … … 440 446 DrawLine (buffer, sx, sy, sx + D, sy - 0.58*D); 441 447 DrawLine (buffer, sx, sy, sx, sy + 1.15*D); 448 // out-of-range points skipped by bDrawPoint 442 449 } 443 450 } … … 460 467 D = scaleSize ? dz*z[i] : ds; 461 468 DrawCircle (buffer, sx, sy, D); 469 // out-of-range points skipped by bDrawPoint 462 470 } 463 471 } … … 484 492 DrawLine (buffer, sx - 0.58*D, sy + 0.81*D, sx - 0.95*D, sy - 0.31*D); 485 493 DrawLine (buffer, sx - 0.95*D, sy - 0.31*D, sx + 0.00*D, sy - 1.00*D); 494 // out-of-range points skipped by bDrawPoint 486 495 } 487 496 } … … 509 518 DrawLine (buffer, sx + 0.50*D, sy - 0.87*D, sx - 0.50*D, sy - 0.87*D); 510 519 DrawLine (buffer, sx - 0.50*D, sy - 0.87*D, sx - D, sy); 520 // out-of-range points skipped by bDrawPoint 511 521 } 512 522 } … … 529 539 D = scaleSize ? dz*z[i] : ds; 530 540 FillCircle (buffer, sx, sy, D); 541 // out-of-range points skipped by bDrawLineHorizontal 531 542 } 532 543 } -
branches/eam_branches/ipp-20131211/Ohana/src/libkapa/src/bDrawFuncs.c
r33956 r36470 247 247 int i; 248 248 249 if (Y < 0) return; 250 if (Y >= buffer[0].Ny) return; 251 249 252 for (i = X1; i < X2; i++) { 253 if (i < 0) continue; 254 if (i >= buffer[0].Nx) continue; 250 255 if (buffer[0].Nbyte == 1) { 251 256 buffer[0].pixels[Y][i] = buffer->bColor; … … 263 268 int i; 264 269 270 if (X < 0) return; 271 if (X >= buffer[0].Nx) return; 272 265 273 for (i = Y1; i < Y2; i++) { 274 if (i < 0) continue; 275 if (i >= buffer[0].Ny) continue; 266 276 if (buffer[0].Nbyte == 1) { 267 277 buffer[0].pixels[i][X] = buffer->bColor;
Note:
See TracChangeset
for help on using the changeset viewer.
