Skip to content

Commit

Permalink
Add deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
robotman2412 committed Jun 3, 2023
1 parent a276357 commit 64e57f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pax_text.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ pax_vec2f pax_draw_text (pax_buf_t *buf, pax_col_t color, const pax_font_t
// Draw a string with the given font and return it's size.
// Size is before matrix transformation.
// Font is scaled up without interpolation, overriding it's default.
__attribute__((warning ("DEPRECATION NOTICE: This function is subject to be removed in release v2.0.0")))
__attribute__((deprecated))
pax_vec2f pax_draw_text_noaa(pax_buf_t *buf, pax_col_t color, const pax_font_t *font, float font_size, float x, float y, const char *text);
// DEPRECATION NOTICE: This function is subject to be removed
// Draw a string with the given font and return it's size.
// Size is before matrix transformation.
// Font is scaled up with interpolation, overriding it's default.
__attribute__((warning ("DEPRECATION NOTICE: This function is subject to be removed in release v2.0.0")))
__attribute__((deprecated))
pax_vec2f pax_draw_text_aa (pax_buf_t *buf, pax_col_t color, const pax_font_t *font, float font_size, float x, float y, const char *text);
// Calculate the size of the string with the given font.
// Size is before matrix transformation.
Expand Down
2 changes: 2 additions & 0 deletions src/pax_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,14 @@ struct pax_buf {

union {
// Pallette for buffers with a pallette type.
__attribute__((deprecated))
pax_col_t *pallette;
// Pallette for buffers with a pallette type.
pax_col_t *palette;
};
union {
// The number of colors in the pallette.
__attribute__((deprecated))
size_t pallette_size;
// The number of colors in the pallette.
size_t palette_size;
Expand Down

0 comments on commit 64e57f9

Please sign in to comment.