Skip to content

Commit

Permalink
Merge pull request #27 from 11Spades/main
Browse files Browse the repository at this point in the history
Fix setting the text color of Inputs/Outputs
  • Loading branch information
MoAlyousef authored Oct 6, 2023
2 parents 0187eb8 + 01c4298 commit a3fb409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/input.zig
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn InputType(comptime kind: InputKind) type {
}

pub fn setTextColor(self: *Input, col: Color) void {
c.Fl_Input_set_text_color(self.input().raw(), col.input().raw()());
c.Fl_Input_set_text_color(self.input().raw(), col.toRgbi());
}

pub fn setTextSize(self: *Input, sz: i32) void {
Expand Down
2 changes: 1 addition & 1 deletion src/output.zig
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn OutputType(comptime kind: OutputKind) type {
}

pub fn setTextColor(self: *Output, col: Color) void {
c.Fl_Output_set_text_color(self.input().raw(), col.input().raw()());
c.Fl_Output_set_text_color(self.input().raw(), col.toRgbi());
}

pub fn setTextSize(self: *Output, sz: i32) void {
Expand Down

0 comments on commit a3fb409

Please sign in to comment.