Comments (6)
Original comment by Robin Wellner (Bitbucket: gvx, GitHub: gvx).
Alternatively or additionally, perhaps a setting in conf.lua?
from love.
Original comment by Bart van Strien (Bitbucket: bartbes, GitHub: bartbes).
@robin: in any case additionally.
Yeah, seems like a nice feature, if it's SDL it can't be too hard (can it?)
from love.
Original comment by Bill Meltsner (Bitbucket: bmelts, GitHub: bmelts).
It's pretty simple: get the raw pixel data of an Image, create an SDL_Surface with it, and pass that to SDL_WM_SetIcon.
I'll take this one.
from love.
Original comment by Sean Donno (Bitbucket: [Sean Donnellan](https://bitbucket.org/Sean Donnellan), ).
I managed to get some time today to have a look at trying to do it myself.
I was however not able to get it fully working, ran into some problems with the typing.
Incorrect parameter type: expected userdata.
I am sure that Creating a surface, setting an icon and then freeing the surface again is fine as the SetIcon will copy the image data, meaning it is safe to free as it is not being used.
For X11, the SetIcon function will XCreatePixmap and so forth thus duplication image data and the data is copied acorss. Similarly Windows does a similar thing CreateIconFromResourceEx, so that data stored b in the surface is not accessed by the WM after the SetIcon function call.
Sorry, for not being able to produce a fully working patch, but at the least I hope this can help as a base.
from love.
Original comment by Bill Meltsner (Bitbucket: bmelts, GitHub: bmelts).
Implemented in <>.
from love.
Original comment by Robin Wellner (Bitbucket: gvx, GitHub: gvx).
Not a setting in conf.lua yet, is that on purpose?
from love.
Related Issues (20)
- Multithreaded job/task system HOT 3
- Request: ability to bind a texture to a shader at specific mipmap level HOT 6
- Request: Love2D Android app ability to import and store .love files in its own directory (similar to iOS version) HOT 6
- Feature request: love.filesystem.newTempFile HOT 7
- Bug: File:read() returns empty string instead of nil when past end of file HOT 2
- Low FPS on certain monitor HOT 6
- love.data.compress causes a segfault on macOS Big Sur (LOVE 11.5) HOT 9
- Regression 11.5: key events not triggered when an IME language is active (windows) HOT 12
- [12.0] C++ exception with newShader() and Vulkan renderer
- (Android/IOS) Display rotation control HOT 1
- [Linux] Add better packaging/distribution options HOT 20
- Brew install fails on macOS with: Error : SHA256 mismatch HOT 1
- Mouse is not updating on right / bottom screen edge (DPI scale > 100%) HOT 7
- Add a way to get Video duration
- Android Depth Buffer HOT 2
- remove the arbitrary 10x near/far plane scaling in the default projection matrix HOT 12
- Improve documentation about the window's depth buffer HOT 2
- Feature request: more performant anti-aliasing. Like FXAA or TAA. HOT 3
- Depth writes not writing to set mipmap HOT 2
- t.window.resizble = false doesn't work on android with LOVE 12 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from love.