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

Commit 020bb7b5 authored by Jason Sams's avatar Jason Sams
Browse files

Add skip to field packer.

remove hsb functions from env headers.
add RS_PACKED define for packed structures.

Change-Id: Idc661edff85c0047baa201f43e0839ac82c74593
parent 9cf3dc48
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -40,6 +40,10 @@ public class FieldPacker {
        mPos = i;
    }

    public void skip(int i) {
        mPos += i;
    }

    public void addI8(byte v) {
        mData[mPos++] = v;
    }
+0 −3
Original line number Diff line number Diff line
@@ -40,9 +40,6 @@ extern void rsgClearDepth(float);
///////////////////////////////////////////////////////
// misc
extern void color(float, float, float, float);
extern void hsb(float, float, float, float);
extern void hsbToRgb(float, float, float, float*);
extern int hsbToAbgr(float, float, float, float);

#endif
+2 −0
Original line number Diff line number Diff line
@@ -58,3 +58,5 @@ typedef struct {
    float m[16];
} rs_matrix4x4;

#define RS_PACKED __attribute__((packed, aligned(4)))