From e6417951dee770fad6d0b685ee2ed0a44d5079f0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 27 May 2024 12:31:49 +0200 Subject: [PATCH] fixed rgb color passing --- util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util.cpp b/util.cpp index 3b1a5de8..87442923 100644 --- a/util.cpp +++ b/util.cpp @@ -557,10 +557,10 @@ color_t exp_parser::parsecolor(int prio) { } if(eat("rgb(")) { array parts; - parts[0] = rparse(); force_eat(","); - parts[1] = rparse(); force_eat(","); - parts[2] = rparse(); - if(eat(",")) parts[3] = rparse(); else parts[3] = 1; + parts[3] = rparse(); force_eat(","); + parts[2] = rparse(); force_eat(","); + parts[1] = rparse(); + if(eat(",")) parts[0] = rparse(); else parts[0] = 1; force_eat(")"); return part_to_col(parts); }