diff --git a/assets/null.png b/assets/null.png deleted file mode 100644 index ad7c667..0000000 Binary files a/assets/null.png and /dev/null differ diff --git a/src/main.cpp b/src/main.cpp index 6af0a68..17aba02 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -241,7 +241,7 @@ float ScaleToFit(Vector2 src, Vector2 dst) { int main(int argc, char *argv[]) { // Initialization //-------------------------------------------------------------------------------------- - int screenWidth = 1280; + int screenWidth = 800; int screenHeight = 800; // SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_RESIZABLE); diff --git a/src/mpris_connection.cpp b/src/mpris_connection.cpp index 8022d15..3b09de4 100644 --- a/src/mpris_connection.cpp +++ b/src/mpris_connection.cpp @@ -178,10 +178,17 @@ void MprisPlayer::UpdateTexture() { } RayTexture::RayTexture() { - tex = LoadTexture(ASSET_DIR "/null.png" ); + 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); GenTextureMipmaps(&tex); SetTextureFilter(tex, TEXTURE_FILTER_BILINEAR); - path = ASSET_DIR "/null.png"; + path = "null"; } RayTexture::RayTexture(Image img) {