Skip to content

Commit b6b75b2

Browse files
committed
drop set_colors
1 parent 6a0706e commit b6b75b2

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/graphics/bindings.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
extern {
33
pub(crate) fn clear_screen(color: i32);
44
pub(crate) fn set_color(index: i32, r: i32, g: i32, b: i32);
5-
pub(crate) fn set_colors(
6-
c1_r: i32,
7-
c1_g: i32,
8-
c1_b: i32,
9-
c2_r: i32,
10-
c2_g: i32,
11-
c2_b: i32,
12-
c3_r: i32,
13-
c3_g: i32,
14-
c3_b: i32,
15-
c4_r: i32,
16-
c4_g: i32,
17-
c4_b: i32,
18-
);
195
pub(crate) fn draw_point(x: i32, y: i32, color: i32);
206
pub(crate) fn draw_line(
217
p1_x: i32,

src/graphics/funcs.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@ pub fn set_color(c: Color, v: RGB) {
1515
}
1616
}
1717

18-
/// Set the color palette.
19-
pub fn set_colors(dark: RGB, accent: RGB, secondary: RGB, light: RGB) {
20-
unsafe {
21-
b::set_colors(
22-
dark.r.into(),
23-
dark.g.into(),
24-
dark.b.into(),
25-
accent.r.into(),
26-
accent.g.into(),
27-
accent.b.into(),
28-
secondary.r.into(),
29-
secondary.g.into(),
30-
secondary.b.into(),
31-
light.r.into(),
32-
light.g.into(),
33-
light.b.into(),
34-
);
35-
}
36-
}
37-
3818
/// Set a single point (1 pixel is scaling is 1) on the frame.
3919
pub fn draw_point(p: Point, c: Color) {
4020
unsafe {

0 commit comments

Comments
 (0)