bug with text_flags

Issue #40 new
Joseba Echevarria García repo owner created an issue

Right now text_flags is not handled properly. In the following example, each glyph is applied the B_HMIRROR flag, when it should probably be applied to the whole text.

import "mod_map"
import "mod_key"
import "mod_video"
import "mod_text"

PROCESS int main();
Private
    int font;

BEGIN
    set_mode(800, 600);
    set_fps(60, 0);

    font = fnt_load("fnt/font.fnt");
    write(font, 400, 300, 7, "No flags");
    text_flags = B_HMIRROR;
    write(font, 400, 300, 1, "B_HMIRROR");
    LOOP
        if(key(_esc))
            break;
        end
        FRAME;
    End

    fnt_unload(font);
END

Comments (0)

  1. Log in to comment