How to stop drawings scaling with screen resolution

I am currently painting an image using some data to later be used as a texture. The problem is that the image keeps scaling with the change in screen resolution [I tested it by setting my screen to a lower resolution]. I wish to stop this from happening when I am creating the texture.

May I inquire how it can be done?


I’m not sure that it would matter, but why does it matter to you? Just curious.

Also, if you resize the window, is it the same effect?