Skip to content

Commit b20937f

Browse files
committed
Update imgaes
1 parent a454e5c commit b20937f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/textures/textures_image_drawing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int main(void)
4343
raylib::Font font("resources/custom_jupiter_crash.png");
4444

4545
// Draw over image using custom font
46-
parrots.DrawText(raylib::Vector2(300, 230), font, "PARROTS & CAT", font.baseSize, -2);
46+
parrots.DrawText(font, "PARROTS & CAT", raylib::Vector2(300, 230), font.baseSize, -2);
4747

4848
raylib::Texture2D texture(parrots); // Image converted to texture, uploaded to GPU memory (VRAM)
4949

include/Image.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ namespace raylib {
295295
}
296296

297297
inline Image& DrawText(const std::string& text, ::Vector2 position, int fontSize, ::Color color = WHITE){
298-
::ImageDrawText(this, text.c_str(), position.x, position.y, fontSize, color);
298+
::ImageDrawText(this, text.c_str(), (int)position.x, (int)position.y, fontSize, color);
299299
return *this;
300300
}
301301
inline Image& DrawText(const std::string& text, int x, int y, int fontSize, ::Color color = WHITE){

0 commit comments

Comments
 (0)