summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorzocker <zocker@10zen.eu>2021-09-25 11:05:44 +0200
committerzocker <zocker@10zen.eu>2021-09-25 11:05:44 +0200
commit0d6e3b3a835924efeb1abe21d6e38752fe021141 (patch)
treef21b8d41e7f4a2cdc0c90ea5f0ad2134393d67b7 /src/ui
parentc80331992585bfee3d65a7ba24f3a4b640c48735 (diff)
Fixed a build fail
There is no member of d with name win, but base seems to have one.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 066ea102..22f105a4 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -530,10 +530,10 @@ void init_MainWindow(iMainWindow *d, iRect rect) {
530 useExecutableIconResource_SDLWindow(d->base.win); 530 useExecutableIconResource_SDLWindow(d->base.win);
531#endif 531#endif
532#if defined (iPlatformLinux) 532#if defined (iPlatformLinux)
533 SDL_SetWindowMinimumSize(d->win, minSize.x * d->base.pixelRatio, minSize.y * d->base.pixelRatio); 533 SDL_SetWindowMinimumSize(d->base.win, minSize.x * d->base.pixelRatio, minSize.y * d->base.pixelRatio);
534 /* Load the window icon. */ { 534 /* Load the window icon. */ {
535 SDL_Surface *surf = loadImage_(&imageLagrange64_Embedded, 0); 535 SDL_Surface *surf = loadImage_(&imageLagrange64_Embedded, 0);
536 SDL_SetWindowIcon(d->win, surf); 536 SDL_SetWindowIcon(d->base.win, surf);
537 free(surf->pixels); 537 free(surf->pixels);
538 SDL_FreeSurface(surf); 538 SDL_FreeSurface(surf);
539 } 539 }