Skip to content

Commit

Permalink
Restore Bitmap::valid() to address some compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Sep 28, 2024
1 parent 5bf2639 commit 70e0d12
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/lunasvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,13 @@ class LUNASVG_API Bitmap {
*/
bool isNull() const { return m_surface == nullptr; }

/**
* @brief Checks if the bitmap is valid.
* @deprecated This function has been deprecated. Use `isNull()` instead to check whether the bitmap is null.
* @return True if the bitmap is null, false otherwise.
*/
bool valid() const { return isNull(); }

/**
* @brief Writes the bitmap to a PNG file.
* @param filename The name of the file to write.
Expand Down

0 comments on commit 70e0d12

Please sign in to comment.