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)
- Documentation: optional didactic "Implementation Details" section HOT 12
- symbol not found in flat namespace (___PHYSFS_platformCalcBaseDir) HOT 3
- allow for vectors in positions and sizes HOT 5
- error: call to member function 'WriteNumber' is ambiguous HOT 4
- Undefined symbols linking for macOS building with CMake
- [12.0] EXR encode/export produces swizzled image content (ABGR instead of RGBA) HOT 8
- love.keyboard.isDown is incorrect after dragging the game window
- Physics fixture/shape :setMask bits are inverted in love compared to box2d HOT 1
- setColor and setBackgroundColor color component values don't work when using ranges 0-255 HOT 3
- love.graphics.drawLayer() does not work. HOT 3
- Differences between repository and *-linux-src.tar.gz HOT 2
- BUG: Increased scaling on windows HOT 10
- When I boot up love2d it just shows an duck balloon with an rope saying "no game". HOT 1
- "love.keyboard.isDown" can't detect single letter key input HOT 6
- Android: `love.window.getSafeArea()`: returns same dimensions on a display with cutouts HOT 4
- `love.keyboard.isDown` does not properly detect remapped input HOT 1
- how to create virtual joystick for a love2d simulator HOT 9
- System error - The code executioncannot proceed beacuse love.dll was not found HOT 2
- Built in mechanism to access SDL hints? HOT 2
- [Request] Add support for custom resolve of MSAA buffers
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.