Line style not working properly?

General FreeBASIC programming questions.
Post Reply
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Line style not working properly?

Post by xlucas »

Hi, guys. I'm trying this:

Code: Select all

ScreenRes 800, 600

Line (0, 100)-(500, 100), 15, , &H5555

GetKey
What I'm getting is a horizontal line where the first 16 pixels display the style &H5555. The rest of the line is solid white. I'm using the newest version of FB, installed a few days ago, under GNU/Linux.

It looks like the line style is not repeating over the rest of the line. I am not 100% sure, but I think I remember this didn't happen before.
dodicat
Posts: 7983
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: Line style not working properly?

Post by dodicat »

It ia a 64 bit thing
search.php?st=0&sk=t&sd=d&sr=posts&auth ... 7&start=30
about 8 posts down.
xlucas
Posts: 334
Joined: May 09, 2014 21:19
Location: Argentina

Re: Line style not working properly?

Post by xlucas »

Oh, I see it now... uhmm... nothing I can do then. I have to write my own assembly base line routine. Good thing is I only need to draw horizontal lines
fxm
Moderator
Posts: 12132
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Line style not working properly?

Post by fxm »

Or update your fbc to current working version 1.10.
k6sti
Posts: 19
Joined: Feb 14, 2019 14:31

Re: Line style not working properly?

Post by k6sti »

The other problem with line style is that it is not phase-continuous over multiple calls. That is, it resets each call. So if you try to draw a curve using styled line segments, the curve looks funny.

Brian
Post Reply