commented out unused vars (#329)
This commit is contained in:
parent
1af7a875fc
commit
25ffd1fe0b
@ -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