FreeBSD Bugzilla – Attachment 9097 Details for
Bug 18769
Minor speedups for libvgl's boxing functions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.15 KB, created by
Pedro F. Giffuni
on 2000-05-23 07:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2000-05-23 07:20:00 UTC
Size:
1.15 KB
patch
obsolete
>*** simple.c.orig Mon May 22 23:31:21 2000 >--- simple.c Tue May 23 00:53:51 2000 >*************** >*** 140,157 **** > void > VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) > { >! VGLLine(object, x1, y1, x2, y1, color); >! VGLLine(object, x2, y1, x2, y2, color); >! VGLLine(object, x2, y2, x1, y2, color); >! VGLLine(object, x1, y2, x1, y1, color); > } > > void > VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) > { >! int y; > >! for (y=y1; y<=y2; y++) VGLLine(object, x1, y, x2, y, color); > } > > void >--- 140,165 ---- > void > VGLBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) > { >! int y,x; >! >! for (x=x1; x<=x2; x++) { /* Horizontal lines */ >! VGLSetXY(object, x, y1, color); >! VGLSetXY(object, x, y2, color); >! } >! for (y= ++y1; y<y2; y++) { /* Vertical lines */ >! VGLSetXY(object, x1, y, color); >! VGLSetXY(object, x2, y, color); >! } > } > > void > VGLFilledBox(VGLBitmap *object, int x1, int y1, int x2, int y2, byte color) > { >! int x,y; > >! for (y=y1; y<=y2; y++) { /* Horizontal lines */ >! for (x=x1; x<=x2; x++) VGLSetXY(object, x, y, color); >! } > } > > void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18769
: 9097 |
9098
|
9099
|
9100