commented out unused vars (#329)
This commit is contained in:
parent
1af7a875fc
commit
25ffd1fe0b
10
src/raygui.h
10
src/raygui.h
@ -1324,7 +1324,7 @@ static const char *guiTooltipPtr = NULL; // Tooltip string pointer (strin
|
|||||||
static bool guiSliderDragging = false; // Gui slider drag state (no inputs processed except dragged slider)
|
static bool guiSliderDragging = false; // Gui slider drag state (no inputs processed except dragged slider)
|
||||||
static Rectangle guiSliderActive = { 0 }; // Gui slider active bounds rectangle, used as an unique identifier
|
static Rectangle guiSliderActive = { 0 }; // Gui slider active bounds rectangle, used as an unique identifier
|
||||||
|
|
||||||
static int textBoxCursorIndex = 0; // Cursor index, shared by all GuiTextBox*()
|
static int textBoxCursorIndex = 0; // Cursor index, shared by all GuiTextBox*()
|
||||||
//static int blinkCursorFrameCounter = 0; // Frame counter for cursor blinking
|
//static int blinkCursorFrameCounter = 0; // Frame counter for cursor blinking
|
||||||
static int autoCursorCooldownCounter = 0; // Cooldown frame counter for automatic cursor movement on key-down
|
static int autoCursorCooldownCounter = 0; // Cooldown frame counter for automatic cursor movement on key-down
|
||||||
static int autoCursorDelayCounter = 0; // Delay frame counter for automatic cursor movement
|
static int autoCursorDelayCounter = 0; // Delay frame counter for automatic cursor movement
|
||||||
@ -1656,7 +1656,7 @@ int GuiTabBar(Rectangle bounds, const char **text, int count, int *active)
|
|||||||
#define RAYGUI_TABBAR_ITEM_WIDTH 160
|
#define RAYGUI_TABBAR_ITEM_WIDTH 160
|
||||||
|
|
||||||
int result = -1;
|
int result = -1;
|
||||||
GuiState state = guiState;
|
//GuiState state = guiState;
|
||||||
|
|
||||||
Rectangle tabBounds = { bounds.x, bounds.y, RAYGUI_TABBAR_ITEM_WIDTH, bounds.height };
|
Rectangle tabBounds = { bounds.x, bounds.y, RAYGUI_TABBAR_ITEM_WIDTH, bounds.height };
|
||||||
|
|
||||||
@ -2077,7 +2077,7 @@ int GuiToggleSlider(Rectangle bounds, const char *text, int *active)
|
|||||||
int temp = 0;
|
int temp = 0;
|
||||||
if (active == NULL) active = &temp;
|
if (active == NULL) active = &temp;
|
||||||
|
|
||||||
bool toggle = false; // Required for individual toggles
|
//bool toggle = false; // Required for individual toggles
|
||||||
|
|
||||||
// Get substrings items from text (items pointers)
|
// Get substrings items from text (items pointers)
|
||||||
int itemCount = 0;
|
int itemCount = 0;
|
||||||
@ -4624,13 +4624,13 @@ const char **GetTextLines(const char *text, int *count)
|
|||||||
lines[0] = text;
|
lines[0] = text;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
*count = 1;
|
*count = 1;
|
||||||
int lineSize = 0; // Stores current line size, not returned
|
//int lineSize = 0; // Stores current line size, not returned
|
||||||
|
|
||||||
for (int i = 0, k = 0; (i < textSize) && (*count < RAYGUI_MAX_TEXT_LINES); i++)
|
for (int i = 0, k = 0; (i < textSize) && (*count < RAYGUI_MAX_TEXT_LINES); i++)
|
||||||
{
|
{
|
||||||
if (text[i] == '\n')
|
if (text[i] == '\n')
|
||||||
{
|
{
|
||||||
lineSize = len;
|
//lineSize = len;
|
||||||
k++;
|
k++;
|
||||||
lines[k] = &text[i + 1]; // WARNING: next value is valid?
|
lines[k] = &text[i + 1]; // WARNING: next value is valid?
|
||||||
len = 0;
|
len = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user