DaveInDev
Member
Hi,
I just noticed that draw_line(x1,y1,x2,y2) is starting to draw one pixel after x1,y1...
Do you have the same result on your GMS2 or is it my graph card ?
Here is an example to put in the draw event of an empty object :
look at the upper left corners of this zoomed portion of the display...
the rectangle and the point are ok, but the line is forgetting the first pixel...
PS: note that I just use the default room, viewport, etc... so no resizing of the display. All is 1:1.
I just noticed that draw_line(x1,y1,x2,y2) is starting to draw one pixel after x1,y1...
Do you have the same result on your GMS2 or is it my graph card ?
Here is an example to put in the draw event of an empty object :
GML:
dy = 0;
draw_set_color(c_grey);
draw_rectangle(x,y+dy,x+200,y+dy+15,false);
dy += 20;
draw_set_color(c_grey);
draw_rectangle(x,y+dy,x+200,y+dy+15,false);
draw_set_color(c_white);
draw_line(x,y+dy,x+200,y+dy);
dy += 20;
draw_set_color(c_grey);
draw_rectangle(x,y+dy,x+200,y+dy+15,false);
draw_set_color(c_white);
draw_line(x,y+dy,x+200,y+dy);
draw_set_color(c_red);
draw_point(x,y+dy);
the rectangle and the point are ok, but the line is forgetting the first pixel...
PS: note that I just use the default room, viewport, etc... so no resizing of the display. All is 1:1.
Attachments
-
308 bytes Views: 4
Last edited: