Compare commits

..

No commits in common. "ad21547040f4e698fee369f9c0b55783d8da29a4" and "faf7d811989dc07d0eaae0e080e95ec0971981ab" have entirely different histories.

4 changed files with 3 additions and 20 deletions

BIN
assets/null.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

View file

@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Version=1.0
Name=mpris-miniplayer
GenericName=Miniplayer
Comment=Miniplayer to display album art for MPRIS media.
Exec=mpris-miniplayer
Terminal=true
Categories=System;Audio;Music
Keywords=music,audio,album

View file

@ -241,7 +241,7 @@ float ScaleToFit(Vector2 src, Vector2 dst) {
int main(int argc, char *argv[]) {
// Initialization
//--------------------------------------------------------------------------------------
int screenWidth = 800;
int screenWidth = 1280;
int screenHeight = 800;
// SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_RESIZABLE);

View file

@ -178,17 +178,10 @@ void MprisPlayer::UpdateTexture() {
}
RayTexture::RayTexture() {
auto rtex = LoadRenderTexture(300,300);
BeginTextureMode(rtex);
DrawRectangle(0,0,300,300,BLACK);
EndTextureMode();
auto img = LoadImageFromTexture(rtex.texture);
tex = LoadTextureFromImage(img);
UnloadImage(img);
UnloadRenderTexture(rtex);
tex = LoadTexture(ASSET_DIR "/null.png" );
GenTextureMipmaps(&tex);
SetTextureFilter(tex, TEXTURE_FILTER_BILINEAR);
path = "null";
path = ASSET_DIR "/null.png";
}
RayTexture::RayTexture(Image img) {