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

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 22, 2019 at 1:04 AM Sergey Manucharian <sm@ara-ler.com> wrote:

> 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).
>
> Thanks Oleksandr and Sergey!
This looks like exactly what I was searching for!

> =CF=9E=CF=BB
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFgkNAmq_rQ3rbALAYWd72Xq2mnMkqR=yrpa%2BWBUT9Mbz4q2VA>