Fix ineffectual assignments
This commit is contained in:
parent
17941ec954
commit
6bcfa21235
3 changed files with 6 additions and 9 deletions
|
@ -45,9 +45,6 @@ func main() {
|
||||||
// Unload CPU (RAM) image data
|
// Unload CPU (RAM) image data
|
||||||
raylib.UnloadImage(imEx)
|
raylib.UnloadImage(imEx)
|
||||||
|
|
||||||
// Unload CPU (RAM) pixels data
|
|
||||||
pixels = nil
|
|
||||||
|
|
||||||
raylib.SetTargetFPS(60)
|
raylib.SetTargetFPS(60)
|
||||||
|
|
||||||
for !raylib.WindowShouldClose() {
|
for !raylib.WindowShouldClose() {
|
||||||
|
|
|
@ -39,9 +39,6 @@ func main() {
|
||||||
checked := raylib.LoadTextureFromImage(checkedIm)
|
checked := raylib.LoadTextureFromImage(checkedIm)
|
||||||
raylib.UnloadImage(checkedIm) // Unload CPU (RAM) image data
|
raylib.UnloadImage(checkedIm) // Unload CPU (RAM) image data
|
||||||
|
|
||||||
// Dynamic memory must be freed after using it
|
|
||||||
pixels = nil // Unload CPU (RAM) pixels data
|
|
||||||
|
|
||||||
raylib.SetTargetFPS(60)
|
raylib.SetTargetFPS(60)
|
||||||
|
|
||||||
for !raylib.WindowShouldClose() {
|
for !raylib.WindowShouldClose() {
|
||||||
|
|
|
@ -368,6 +368,12 @@ var propertyName = []string{
|
||||||
"TEXTBOX_TEXT_FONTSIZE",
|
"TEXTBOX_TEXT_FONTSIZE",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For spinner
|
||||||
|
var (
|
||||||
|
framesCounter int
|
||||||
|
valueSpeed bool
|
||||||
|
)
|
||||||
|
|
||||||
// BackgroundColor - Get background color
|
// BackgroundColor - Get background color
|
||||||
func BackgroundColor() raylib.Color {
|
func BackgroundColor() raylib.Color {
|
||||||
return raylib.GetColor(int32(style[GlobalBackgroundColor]))
|
return raylib.GetColor(int32(style[GlobalBackgroundColor]))
|
||||||
|
@ -855,9 +861,6 @@ func Spinner(bounds raylib.Rectangle, value, minValue, maxValue int) int {
|
||||||
|
|
||||||
buttonSide := 0
|
buttonSide := 0
|
||||||
|
|
||||||
var framesCounter int
|
|
||||||
var valueSpeed bool
|
|
||||||
|
|
||||||
// Update control
|
// Update control
|
||||||
if raylib.CheckCollisionPointRec(mousePoint, leftButtonBound) || raylib.CheckCollisionPointRec(mousePoint, rightButtonBound) || raylib.CheckCollisionPointRec(mousePoint, labelBoxBound) {
|
if raylib.CheckCollisionPointRec(mousePoint, leftButtonBound) || raylib.CheckCollisionPointRec(mousePoint, rightButtonBound) || raylib.CheckCollisionPointRec(mousePoint, labelBoxBound) {
|
||||||
if raylib.IsKeyDown(raylib.KeyLeft) {
|
if raylib.IsKeyDown(raylib.KeyLeft) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue