diff options
Diffstat (limited to 'app/gtk_util.h')
-rw-r--r-- | app/gtk_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/gtk_util.h b/app/gtk_util.h index 22ab7d2..089e901 100644 --- a/app/gtk_util.h +++ b/app/gtk_util.h @@ -5,6 +5,7 @@ #ifndef APP_GTK_UTIL_H_ #define APP_GTK_UTIL_H_ +#include <stdint.h> typedef struct _GtkWidget GtkWidget; namespace gtk_util { @@ -29,6 +30,11 @@ void GetWidgetSizeFromCharacters( // with gtk_message_dialog_new. void ApplyMessageDialogQuirks(GtkWidget* dialog); +// Makes a copy of |pixels| with the ordering changed from BGRA to RGBA. +// The caller is responsible for free()ing the data. If |stride| is 0, +// it's assumed to be 4 * |width|. +uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride); + } // namespace gtk_util #endif // APP_GTK_UTIL_H_ |