Skip to content

Commit d2a086b

Browse files
committed
Rename scroll style bottom -> classic
Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 60a5a29 commit d2a086b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

demo.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int HEIGHT = 600;
3636
typedef enum {
3737
SCROLL_NONE,
3838
SCROLL_SINE_WAVE,
39-
SCROLL_BOTTOM_TRADITIONAL,
39+
SCROLL_CLASSIC,
4040
SCROLL_ROLLER_3D
4141
} ScrollStyle;
4242

@@ -1052,8 +1052,8 @@ static void apply_scroll_controls(DemoContext *ctx, float scroll_offset, float t
10521052
ctx->scroll_style = SCROLL_SINE_WAVE;
10531053
else if (strcmp(cc->data, "roller") == 0)
10541054
ctx->scroll_style = SCROLL_ROLLER_3D;
1055-
else if (strcmp(cc->data, "bottom") == 0)
1056-
ctx->scroll_style = SCROLL_BOTTOM_TRADITIONAL;
1055+
else if (strcmp(cc->data, "classic") == 0)
1056+
ctx->scroll_style = SCROLL_CLASSIC;
10571057
break;
10581058

10591059
case 'C': /* COLOR */
@@ -1366,8 +1366,8 @@ void render_scroll_text(DemoContext *ctx)
13661366

13671367
/* Apply control codes based on scroll position */
13681368
apply_scroll_controls(ctx, ctx->scroll_offset, total_adv);
1369-
} else if (ctx->scroll_style == SCROLL_BOTTOM_TRADITIONAL) {
1370-
/* Traditional bottom scroller - render entire line once */
1369+
} else if (ctx->scroll_style == SCROLL_CLASSIC) {
1370+
/* Classic bottom scroller - render entire line once */
13711371
static SDL_Texture *line_tex = NULL;
13721372
static int line_w = 0;
13731373
static const char *last_display_text = NULL;

scroll.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{SPEED:400}{STYLE:bottom}
1+
{SPEED:400}{STYLE:classic}
22

33

44

scroll2.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{STYLE:bottom}Welcome to... the Infix Demo!{PAUSE:2}
1+
{STYLE:classic}Welcome to... the Infix Demo!{PAUSE:2}
22

33

44

scroll3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{STYLE:bottom}Welcome to... the Infix Demo!{PAUSE:2}
1+
{STYLE:classic}Welcome to... the Infix Demo!{PAUSE:2}
22
{SPEED:400}
33

44

0 commit comments

Comments
 (0)