Skip to content

Commit

Permalink
fix: 修复 getpixel_f 和 pupixels_f 声明和定义不一致的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yixy-only committed Dec 15, 2024
1 parent 2f830c5 commit 5a81dff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/egegapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ void putpixels(int numOfPoints, const int* points, PIMAGE pimg)
CONVERT_IMAGE_END;
}

void putpixels_f(int numOfPoints, const int* points, PCIMAGE pimg)
void putpixels_f(int numOfPoints, const int* points, PIMAGE pimg)
{
PCIMAGE img = CONVERT_IMAGE(pimg);
PIMAGE img = CONVERT_IMAGE(pimg);
int x, y, c;
int tw = img->m_width;
int th = img->m_height;
Expand All @@ -129,9 +129,9 @@ void putpixels_f(int numOfPoints, const int* points, PCIMAGE pimg)
CONVERT_IMAGE_END;
}

color_t getpixel_f(int x, int y, PIMAGE pimg)
color_t getpixel_f(int x, int y, PCIMAGE pimg)
{
PIMAGE img = CONVERT_IMAGE_F_CONST(pimg);
PCIMAGE img = CONVERT_IMAGE_F_CONST(pimg);
if (in_rect(x, y, img->m_width, img->m_height)) {
return img->m_pBuffer[y * img->m_width + x];
}
Expand Down

0 comments on commit 5a81dff

Please sign in to comment.