Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2019 13:34:19 -0600
From:      Sergey Manucharian <sm@ara-ler.com>
To:        Oleksandr Tymoshenko <gonzo@bluezbox.com>
Cc:        Vijay Kumar Banerjee <vijaykumar9597@gmail.com>, freebsd-arm@freebsd.org
Subject:   Re: Writing to /dev/fb0
Message-ID:  <20190621193419.GG2903@eldorado>
In-Reply-To: <20190621190502.GA35692@bluezbox.com>
References:  <CAFgkNAkVHccLg15aq9RY5CaT1qV=Bku2KpqOZiLjaNhJJF%2B8=A@mail.gmail.com> <20190621170845.GD2903@eldorado> <20190621171343.GE2903@eldorado> <CAFgkNAmw3cyhacK2RT2bHn=pNjRTE39o=bAR7aeuJPRb6W1dyQ@mail.gmail.com> <20190621190502.GA35692@bluezbox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Excerpts from Oleksandr Tymoshenko's message from Fri 21-Jun-19 12:05:
> You probably can convert this source file from my tslib branch to
> standalone app:
> 
> https://github.com/gonzoua/tslib/blob/freebsd/tests/fbutils-bsd.c
> 
> -- 

Thanks, gonzo!

That's really simple!

I added "main" and it draws a red rectangle!

int main (int argc, char** argv)
{       
        
        open_framebuffer();
        setcolor (4, 0xff0000);
        rect(100, 200, 200, 300, 4);
        close_framebuffer();
}

Vijay,

Before compiling remove references to font related stuff like 
"put_char" and "put_string" since they need linking with a font 
processing library (not libfreetype).

Ϟϻ




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190621193419.GG2903>