[vte/wip/sixels: 44/111] sixel: Move helper function up to the helper section
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels: 44/111] sixel: Move helper function up to the helper section
- Date: Sat, 8 Aug 2020 18:43:00 +0000 (UTC)
commit c0c5c0e7afb5fd3799d53d22455d5c038ceff496
Author: Hans Petter Jansson <hpj cl no>
Date: Sat Aug 8 20:42:48 2020 +0200
sixel: Move helper function up to the helper section
src/sixel-gen.cc | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/src/sixel-gen.cc b/src/sixel-gen.cc
index 7aa2d349..752006ff 100644
--- a/src/sixel-gen.cc
+++ b/src/sixel-gen.cc
@@ -62,6 +62,21 @@ typedef struct
}
Image;
+static int
+random_int_in_range (int min, int max)
+{
+ if (min == max)
+ return min;
+
+ if (min > max) {
+ int t = max;
+ max = min;
+ min = t;
+ }
+
+ return min + (random () % (max - min));
+}
+
static int
round_up_to_multiple (int n, int m)
{
@@ -364,21 +379,6 @@ typedef struct
}
Options;
-static int
-random_int_in_range (int min, int max)
-{
- if (min == max)
- return min;
-
- if (min > max) {
- int t = max;
- max = min;
- min = t;
- }
-
- return min + (random () % (max - min));
-}
-
static void
cursor_to_offset (gint x, gint y, GString *gstr)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]