Giter Site home page Giter Site logo

Comments (10)

jiangzc avatar jiangzc commented on May 20, 2024

位置和尺寸可能和缩放有关系,我禁用了软件的屏幕缩放后运行是正常的。试试在app构造前加入 QCoreApplication::setAttribute( Qt::AA_DisableHighDpiScaling ) 语句。这样可以使用窗口原生的坐标。

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

我可以试试app构造前加入 QCoreApplication::setAttribute( Qt::AA_DisableHighDpiScaling ) 这样的方法,NVDIA显卡下面是这样的情况.你用截图就知道,获取出来的最大尺寸是离25601440有差距的,也就是真实尺寸不是25601440,而我设置的大小时qt获取屏幕尺寸去设置的,qt获取屏幕尺寸是2050左右1100左右,而我设置这个尺寸不对.设置25601440也是不对的,所以增加了自定义设置,这个应该是硬件驱动的一个bug

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

现在解码只有一种,就是mpv播放器的opengl-cb播放,是硬解码,后续也会优化这方面,如果是双屏的话我为了得到数据,转化成了QImage,可能是有cpu占用影响,后续再优化

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

我试了一下,设置里面锁放,好像是存在问题,先试试你给的方法行不行,感谢

from fantascene-dynamic-wallpaper.

jiangzc avatar jiangzc commented on May 20, 2024

嗯,我电脑是双屏幕。笔记本 15.6寸+外接的27寸显示器,只在外接显示器上显示。

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

我用了一个很low的方法去规避问题,在屏幕尺寸和播放器不一致的时候,采用播放尺寸去渲染,至少现在看来是没有问题的,请在0.0.9版本查看,如果你那边用着没有问题,给我说一下,谢谢,那这个问题,应该和mpv和qopenglwidget中两个有一个bug,窗口大小变了,渲染尺寸却没有变

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

也就是窗口是20001100的时候,我却渲染的25601440,没有渲染数据的区域用黑色代替,导致了这个问题,现在第一次都回去判断一下尺寸问题,希望现在这个问题得到解决了

from fantascene-dynamic-wallpaper.

jiangzc avatar jiangzc commented on May 20, 2024

from fantascene-dynamic-wallpaper.

dependon avatar dependon commented on May 20, 2024

那个我知道,这个没办法解决,因为那一坨被干掉了,如果能够用原生dde-desktop来做动态壁纸才可以,等做桌面的人开放接口,囧

from fantascene-dynamic-wallpaper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.