Legacy GM [solved ]draw_rectangle_colour problem

J

Jordan Robinson

Guest
If you are scaling the view, you will have to scale the gui to match the new view size.

Check out the manual for the gui functions.
 
S

SoulTie

Guest
Hmm. If you are not using the draw GUI event, then the box should be scaled for sure. Are you positive that the coords you entered are the ones that you are wanting? It could be a simple mistake that you are overlooking.
 
S

Shadowblitz16

Guest
I guess its a bug then? I wasn't using a draw_gui event
can someone report this bug for me?
I don't have an account on that mantis site yoyo games use
 
S

Shadowblitz16

Guest
I guess the size was a bug however it still draws tiny pixel lines

Code:
///draw event
if canDrawTiles draw_background(bg_tiles, 0, 0)
if canDrawGrid draw_background(bg_base, 0, 0)

draw_rectangle(0,0,8,8,true)
 
S

Shadowblitz16

Guest
Aura bugs are classified by us the users. well most of the time.
also I meant the size was a bug in my code
the lines should still be a pixel thick which they aren't

Edit: this was the code I was using at the time of the screen shot.
its not complete since I was actually trying to debug it.
Code:
///draw_rect_custom(index, width, height, length, frames, frame)

var index = argument[0];
var length = argument[1];
var frames = argument[2];
var width = argument[3];
var height = argument[4];
var frame = argument[5];

var X = index mod 32;
var Y = index div 32;

var XX = (X * width)
var YY = (Y * height)
var WW = width * 4
var HH = height * 4

//var FRAME = XX + 4 * YY

var FRAME_X = XX mod length
var FRAME_Y = YY div frames
var FRAME_W = width * 4
var FRAME_H = height * 4

draw_rectangle_colour(XX, YY,  XX+width, YY+height, c_white, c_white, c_white, c_white, true)
//draw_rectangle_colour(XX, YY, XX+width, YY+height, c_white, c_white, c_white, c_white, true)
///draw_background_part(sprite, FRAME_X, FRAME_Y, WW, HH, 0, 0)
 
Last edited by a moderator:
I

icuurd12b42

Guest
the border is 1px thick.
since the application surface is the same size of your screen by default drawing a line will be 1px thick in the final render
scaling the view does not change this fact. you need to scale the surface to the size of the view in room
And no it's not a bug, it's desired behavior.
upload_2016-6-27_0-2-15.png
 
Top