Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb88ac9f authored by Jason Sams's avatar Jason Sams
Browse files

Change global variables from extern to non static. Make script local global vars static.

Change-Id: I73656978e0f0ceeb927afef292fc4ed9755b7214
parent 4ab7b236
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#include "rs_math.rsh"
#include "rs_graphics.rsh"

int newPart = 0;
static int newPart = 0;

typedef struct Control_s {
    int x, y;
@@ -15,14 +15,14 @@ typedef struct Control_s {
    rs_allocation partBuffer;
    rs_mesh partMesh;
} Control_t;
extern Control_t *Control;
Control_t *Control;

typedef struct Point_s{
    float2 delta;
    float2 position;
    unsigned int color;
} Point_t;
extern Point_t *point;
Point_t *point;

int main(int launchID) {
    int ct;
@@ -69,6 +69,5 @@ int main(int launchID) {

    uploadToBufferObject(Control->partBuffer);
    drawSimpleMesh(Control->partMesh);

    return 1;
}