MCPcopy Create free account
hub / github.com/JACoders/OpenJK / UI_GetScreenshotFormatForString

Function UI_GetScreenshotFormatForString

code/ui/ui_main.cpp:357–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355void UI_Load(void);
356
357static int UI_GetScreenshotFormatForString( const char *str ) {
358 if ( !Q_stricmp(str, "jpg") || !Q_stricmp(str, "jpeg") )
359 return SSF_JPEG;
360 else if ( !Q_stricmp(str, "tga") )
361 return SSF_TGA;
362 else if ( !Q_stricmp(str, "png") )
363 return SSF_PNG;
364 else
365 return -1;
366}
367
368static const char *UI_GetScreenshotFormatString( int format )
369{

Callers 1

UI_UpdateScreenshotFunction · 0.70

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected