Added linear filter option for vScreen texture.
Rollback blit to backing storage – its persistence is not guaranteed. Added project URL to About dialog. Added source ports table to readme.
This commit is contained in:
1 parent
4c196a9290
commit
fd9de493e6
12 files changed
+132
-957
No files matched your search
@@ -5,6 +5,30 @@ class TPinballTable;
|
||||
class DatFile;
|
||||
class TBall;
|
||||
|
||||
class UsingSdlHint
|
||||
{
|
||||
public:
|
||||
explicit UsingSdlHint(const char* name, const char* value)
|
||||
: HintName(name)
|
||||
{
|
||||
auto originalValue = SDL_GetHint(name);
|
||||
if (originalValue)
|
||||
strncpy(OriginalValue, originalValue, sizeof OriginalValue - 1);
|
||||
|
||||
SDL_SetHint(name, value);
|
||||
}
|
||||
|
||||
~UsingSdlHint()
|
||||
{
|
||||
if (OriginalValue[0])
|
||||
SDL_SetHint(HintName, OriginalValue);
|
||||
}
|
||||
|
||||
private:
|
||||
char OriginalValue[40]{};
|
||||
const char* HintName;
|
||||
};
|
||||
|
||||
class pb
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user