Search found 71 matches

by Sasha264
Wed Jul 31, 2019 12:19 pm
Forum: Support and Development
Topic: Correctly resizing window on HD monitor?
Replies: 11
Views: 4887

Re: Correctly resizing window on HD monitor?

updateMode will destroy and recreate the entire window and OpenGL context Thanks, learned something new ^_^ About workaround: Since this code returnes index of current display: local _, _, display = love.window.getPosition() You can monitor when it changes, and then call updateWindow(...) to "attun...
by Sasha264
Fri Jul 26, 2019 6:31 pm
Forum: Support and Development
Topic: Correctly resizing window on HD monitor?
Replies: 11
Views: 4887

Re: Correctly resizing window on HD monitor?

Ok, let's save and set window position and display index with that: function love.keypressed(key) local x, y, display = love.window.getPosition() if key == "5" then love.window.updateMode(500, 500, { x = x, y = y, display = display }) elseif key == "9" then love.window.updateMode(900, 500, { x = x, ...
by Sasha264
Thu Jul 25, 2019 2:57 pm
Forum: Support and Development
Topic: Correctly resizing window on HD monitor?
Replies: 11
Views: 4887

Re: Correctly resizing window on HD monitor?

Wow!! The gif you shared looks really weird :o
I recommend to add it in your bitbucket ticket, because it perfectly describes the behavior.
by Sasha264
Thu Jul 25, 2019 2:52 pm
Forum: Support and Development
Topic: Correctly resizing window on HD monitor?
Replies: 11
Views: 4887

Re: Correctly resizing window on HD monitor?

Hm.. this resolutions seems ok. Another guess: what if you change window not by mouse, but from the code? For example with this code, added to the buttom of the main.lua file? function love.keypressed(key) if key == "5" then love.window.setMode(500, 500) elseif key == "9" then love.window.setMode(90...
by Sasha264
Thu Jul 25, 2019 12:05 pm
Forum: Support and Development
Topic: Canvas, ImageData and separate Thread
Replies: 2
Views: 1253

Re: Canvas, ImageData and separate Thread

@pgimeno, thanks a lot for the responce! :awesome: Yes, I suspect that maybe it is not possible at all... But after playing modern 3d games noticed that the common feature is to draw game with low resolution textures and instantly change it to high resolution after they are loaded. What made me thin...
by Sasha264
Thu Jul 25, 2019 11:49 am
Forum: Support and Development
Topic: Handle High DPI displays on windows
Replies: 8
Views: 5661

Re: Handle High DPI displays on windows

@slime, thanks! I will be looking forward for future updates in future years :megagrin:

@jonthysell, that's a very useful information, thank you!
Changing it permanently or temporarily through bat files is an appropriate solution :cool:
by Sasha264
Thu Jul 25, 2019 11:38 am
Forum: Support and Development
Topic: Correctly resizing window on HD monitor?
Replies: 11
Views: 4887

Re: Correctly resizing window on HD monitor?

Hello & welcome! :megagrin: The bug is not reproduced on my 4k config on Windows with different DPI settings. Maybe it's only MacOS feature... It will be interesting to look at the window resolution, obtained by love in this case. Can you add this code: local w, h = love.graphics.getDimensions() lov...
by Sasha264
Tue Jul 23, 2019 4:24 pm
Forum: Support and Development
Topic: Handle High DPI displays on windows
Replies: 8
Views: 5661

Re: Handle High DPI displays on windows

Found interesting note here in Additions section :awesome: https://love2d.org/wiki/11.3 :awesome:
Added 'usedpiscale' boolean (true by default) to love.window.setMode and love.conf. Disables automatic DPI scaling when false.
Will the 'usedpiscale' flag solve this high dpi problem on Windows?
by Sasha264
Tue Jul 23, 2019 4:05 pm
Forum: Support and Development
Topic: Canvas, ImageData and separate Thread
Replies: 2
Views: 1253

Canvas, ImageData and separate Thread

Hello everyone! :crazy: I have small canvas that filled up with few valuable pixels. It is not! updating every frame, instead in updates rarely. And i want to copy its content to the cpu memory, like Canvas:newImageData() does, but without blocking my main drawing thread! Is here a way to do this in...
by Sasha264
Wed Mar 20, 2019 11:52 pm
Forum: Support and Development
Topic: drawInstanced example [SOLVED]
Replies: 1
Views: 963

Re: drawInstanced example [SOLVED]

Ho-ho!
Sorry, missed this at the top of my shaders:

Code: Select all

#pragma language glsl3
With this all works fine!
[SOLVED]