mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 19:09:45 +01:00
93ec2c6cca
The plan is to have Steam screenshots always be 2x, but in the VVVVVV screenshots directory (for F6 keybind) save both 1x and 2x. Again, just for now, the 2x screenshot is being saved to a temporary location for testing and will get proper timestamps later.
52 lines
978 B
C++
52 lines
978 B
C++
#include "CWrappers.h"
|
|
|
|
#include <SDL.h>
|
|
|
|
#include "Graphics.h"
|
|
#include "GraphicsUtil.h"
|
|
#include "Localization.h"
|
|
#include "UtilityClass.h"
|
|
|
|
extern "C"
|
|
{
|
|
|
|
char* HELP_number_words(int _t, const char* number_class)
|
|
{
|
|
/* C wrapper for UtilityClass::number_words.
|
|
* Caller must VVV_free. */
|
|
|
|
std::string str = help.number_words(_t, number_class);
|
|
|
|
char* buffer = (char*) SDL_malloc(str.size() + 1);
|
|
str.copy(buffer, str.size());
|
|
buffer[str.size()] = '\0';
|
|
|
|
return buffer;
|
|
}
|
|
|
|
uint32_t LOC_toupper_ch(uint32_t ch)
|
|
{
|
|
return loc::toupper_ch(ch);
|
|
}
|
|
|
|
SDL_Surface* GRAPHICS_tempScreenshot(void)
|
|
{
|
|
return graphics.tempScreenshot;
|
|
}
|
|
|
|
SDL_Surface* GRAPHICS_tempScreenshot2x(void)
|
|
{
|
|
return graphics.tempScreenshot2x;
|
|
}
|
|
|
|
uint8_t UTIL_TakeScreenshot(SDL_Surface** surface)
|
|
{
|
|
return TakeScreenshot(surface);
|
|
}
|
|
|
|
uint8_t UTIL_UpscaleScreenshot2x(SDL_Surface* src, SDL_Surface** dest)
|
|
{
|
|
return UpscaleScreenshot2x(src, dest);
|
|
}
|
|
|
|
} /* extern "C" */
|