freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype-demos][master] * graph/x11/grx11.c (gr_x11_surfa


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * graph/x11/grx11.c (gr_x11_surface_init): Ignore border and colormap.
Date: Fri, 07 Oct 2022 16:28:51 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • ee9de687
    by Alexei Podtelezhnikov at 2022-10-07T16:28:49+00:00
    * graph/x11/grx11.c (gr_x11_surface_init): Ignore border and colormap.
    
    The colormap is unused. The border is set by a window manager.

1 changed file:

Changes:

  • graph/x11/grx11.c
    ... ... @@ -950,7 +950,6 @@
    950 950
         Display*            display;
    
    951 951
         Window              win;
    
    952 952
         Visual*             visual;
    
    953
    -    Colormap            colormap;
    
    954 953
         GC                  gc;
    
    955 954
         Atom                wm_delete_window;
    
    956 955
     
    
    ... ... @@ -1419,26 +1418,13 @@
    1419 1418
           xswa.event_mask = ExposureMask | VisibilityChangeMask |
    
    1420 1419
                             KeyPressMask | StructureNotifyMask ;
    
    1421 1420
     
    
    1422
    -      if ( surface->visual == DefaultVisual( display, screen ) )
    
    1423
    -        surface->colormap     = DefaultColormap( display, screen );
    
    1424
    -      else
    
    1425
    -      {
    
    1426
    -        xswa_mask            |= CWBorderPixel | CWColormap;
    
    1427
    -        xswa.border_pixel     = BlackPixel( display, screen );
    
    1428
    -        xswa.colormap         = XCreateColormap( display,
    
    1429
    -                                                 RootWindow( display, screen ),
    
    1430
    -                                                 surface->visual,
    
    1431
    -                                                 AllocNone );
    
    1432
    -        surface->colormap     = xswa.colormap;
    
    1433
    -      }
    
    1434
    -
    
    1435 1421
           surface->win = XCreateWindow( display,
    
    1436 1422
                                         RootWindow( display, screen ),
    
    1437 1423
                                         0,
    
    1438 1424
                                         0,
    
    1439 1425
                                         (unsigned int)bitmap->width,
    
    1440 1426
                                         (unsigned int)bitmap->rows,
    
    1441
    -                                    10,
    
    1427
    +                                    0,
    
    1442 1428
                                         x11dev.format->x_depth,
    
    1443 1429
                                         InputOutput,
    
    1444 1430
                                         surface->visual,
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]