home *** CD-ROM | disk | FTP | other *** search
- /*
- * BCC2GRX - Interfacing Borland based graphics programs to LIBGRX
- * Copyright (C) 1993 Hartmut Schirmer
- *
- * see bccgrx.c for details
- */
-
- #include "bccgrx00.h"
-
- /* ----------------------------------------------------------------- */
- void setfillstyle(int pattern, int color)
- {
- _DO_INIT_CHECK;
- if (pattern < 0 || pattern >= USER_FILL) {
- ERR = grError;
- return;
- }
- FPATT = pattern;
- FILL = color;
- FILLP.gp_bmp_data = (unsigned char *)&__gr_fpatterns[FPATT];
- }
-
- /* ----------------------------------------------------------------- */
- void setfillpattern( char *upattern, int color)
- {
- _DO_INIT_CHECK;
- FILL = color;
- FPATT = USER_FILL;
- memcpy(__gr_fpatterns[USER_FILL], upattern, 8);
- FILLP.gp_bmp_data = (unsigned char *)&__gr_fpatterns[USER_FILL];
- }
-
-