P
Python
Guest
Hey guys!
In my engine, for some reason, switching to fullscreen mode is also affecting my game's scanlines. I'll explain it below, but first let me show what I have coded so far:
My view width and height are 320x240, while my port on screen is 640x480.
As you can see, the code above does work normally. BUT my game does also have a HUD. I had to add this piece of code so the it scales correctly while on fullscreen:
However, this code seems to be affecting the scanlines. If I remove it, the scanlines works the way I want on both fullscreen and windowed mode, but my HUD "shrinks". If I keep it, my HUD works but scanlines are affected.
I tried everything I could but no success. :/
Oh, and btw, sorry if my problem sounds kinda confusing.
Any help would be appreciated.
In my engine, for some reason, switching to fullscreen mode is also affecting my game's scanlines. I'll explain it below, but first let me show what I have coded so far:
Code:
//DRAW GUI
//Draw scanlines
draw_set_colour(c_black);
for (var i=0;i<window_get_width();i+=2)
draw_line(-1,i,window_get_width(),i);
As you can see, the code above does work normally. BUT my game does also have a HUD. I had to add this piece of code so the it scales correctly while on fullscreen:
Code:
//CREATE EVENT
display_set_gui_size(view_wview[0],view_hview[0]);
I tried everything I could but no success. :/
Oh, and btw, sorry if my problem sounds kinda confusing.
Any help would be appreciated.