mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-15 06:16:01 +00:00
Update core_undo_redo.c
This commit is contained in:
@@ -116,7 +116,7 @@ int main(void)
|
|||||||
player.color.b = (unsigned char)GetRandomValue(20, 240);
|
player.color.b = (unsigned char)GetRandomValue(20, 240);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Undo layout change logic
|
// Undo state change logic
|
||||||
undoFrameCounter++;
|
undoFrameCounter++;
|
||||||
|
|
||||||
// Waiting a number of frames before checking if we should store a new state snapshot
|
// Waiting a number of frames before checking if we should store a new state snapshot
|
||||||
@@ -176,7 +176,6 @@ int main(void)
|
|||||||
// Draw
|
// Draw
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
BeginDrawing();
|
BeginDrawing();
|
||||||
|
|
||||||
ClearBackground(RAYWHITE);
|
ClearBackground(RAYWHITE);
|
||||||
|
|
||||||
// Draw controls info
|
// Draw controls info
|
||||||
@@ -310,4 +309,4 @@ static void DrawUndoBuffer(Vector2 position, int firstUndoIndex, int lastUndoInd
|
|||||||
// Draw current selected UNDO slot
|
// Draw current selected UNDO slot
|
||||||
DrawRectangle(position.x + slotSize*currentUndoIndex, position.y, slotSize, slotSize, GOLD);
|
DrawRectangle(position.x + slotSize*currentUndoIndex, position.y, slotSize, slotSize, GOLD);
|
||||||
DrawRectangleLines(position.x + slotSize*currentUndoIndex, position.y, slotSize, slotSize, ORANGE);
|
DrawRectangleLines(position.x + slotSize*currentUndoIndex, position.y, slotSize, slotSize, ORANGE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user