MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / app_get_current_pixel_format

Function app_get_current_pixel_format

src/app/app.cpp:854–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854PixelFormat app_get_current_pixel_format()
855{
856 Context* context = UIContext::instance();
857 ASSERT(context != NULL);
858
859 Document* document = context->activeDocument();
860 if (document != NULL)
861 return document->sprite()->pixelFormat();
862 else
863 return IMAGE_RGB;
864}
865
866void app_default_statusbar_message()
867{

Callers 5

setActiveViewMethod · 0.85
onPaintMethod · 0.85
onPaintMethod · 0.85

Calls 4

instanceFunction · 0.85
activeDocumentMethod · 0.45
pixelFormatMethod · 0.45
spriteMethod · 0.45

Tested by

no test coverage detected