Skip to content

Commit

Permalink
adjust: 取消 setfillstyle() 等常用且不易替代的函数的弃用标记 (#178)
Browse files Browse the repository at this point in the history
* adjust: 兼容 BGI, 将 LINE_FILL 样式改为水平阴影
* adjust: 将常用且不易替代的函数取消弃用标记
  • Loading branch information
yixy-only authored May 20, 2024
1 parent 769a6e0 commit 66cdc22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/ege.h
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,11 @@ void EGEAPI window_getviewport(int* left, int* top, int* right, int* bottom);
void EGEAPI window_setviewport(int left, int top, int right, int bottom);


EGE_DEPRECATE(getlinestyle)
void EGEAPI getlinestyle(int* linestyle, unsigned short* pattern = NULL, int* thickness = NULL, PCIMAGE pimg = NULL);
void EGEAPI setlinestyle(int linestyle, unsigned short pattern = 0, int thickness = 1, PIMAGE pimg = NULL);
void EGEAPI setlinewidth(float width, PIMAGE pimg = NULL);
//EGE_DEPRECATE(getfillstyle)

//void getfillstyle(color_t *pcolor, int *ppattern = NULL, PIMAGE pimg = NULL); // ###
EGE_DEPRECATE(setfillstyle)
void EGEAPI setfillstyle(int pattern, color_t color, PIMAGE pimg = NULL);

void EGEAPI setwritemode(int mode, PIMAGE pimg = NULL);
Expand Down
2 changes: 1 addition & 1 deletion src/egegapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ void setfillstyle(int pattern, color_t color, PIMAGE pimg)
lbr.lbStyle = BS_SOLID;
} else if (pattern < USER_FILL) { // dose not finish
int hatchmap[] = {
HS_VERTICAL,
HS_HORIZONTAL,
HS_BDIAGONAL,
HS_BDIAGONAL,
HS_FDIAGONAL,
Expand Down

0 comments on commit 66cdc22

Please sign in to comment.