mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Fixed the color set by love.graphics.setColor not being restored properly when love.graphics.pop is called after love.graphics.push("all").
This commit is contained in:
@@ -106,18 +106,12 @@ private:
|
||||
|
||||
struct Vibration
|
||||
{
|
||||
float left, right;
|
||||
SDL_HapticEffect effect;
|
||||
Uint16 data[4];
|
||||
int id;
|
||||
|
||||
Uint32 endtime;
|
||||
|
||||
Vibration()
|
||||
: left(0.0f), right(0.0f)
|
||||
, effect(), data(), id(-1)
|
||||
, endtime(SDL_HAPTIC_INFINITY)
|
||||
{}
|
||||
float left = 0.0f;
|
||||
float right = 0.0f;
|
||||
SDL_HapticEffect effect = {};
|
||||
Uint16 data[4] = {0};
|
||||
int id = -1;
|
||||
Uint32 endtime = SDL_HAPTIC_INFINITY;
|
||||
|
||||
} vibration;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user