Skip to content

Commit

Permalink
BLUGA-GRAPHICS: Fix include
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 1, 2023
1 parent 58d4b5a commit 76a5e85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ namespace Raylib {

static std::string getClipboardText();

static void setWindowIcon(RayImage icon):
static void setWindowIcon(RayImage &icon):
};

// Text functions and classes
Expand Down
2 changes: 1 addition & 1 deletion libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace Raylib {
return _image.format;
}

void RayImage::setData(RayImage image)
void RayImage::setData(const RayImage &image)
{
_image.data = image._image.data;
}
Expand Down
4 changes: 2 additions & 2 deletions libs/B-luga-graphics/src/RaylibImpl/Graphics/Graphics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ namespace Raylib {

int getFormat() const override;

void setData(RayImage image) override;
void setData(const RayImage &image) override;
private:
::Image _image;
};

class SpriteImpl {
class SpriteImpl : public Sprite {
public:
SpriteImpl(const std::string &fileName, float width, float height, std::size_t id);

Expand Down

0 comments on commit 76a5e85

Please sign in to comment.