Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
8439fd65
by Alexei Podtelezhnikov at 2022-10-07T22:55:41-04:00
1 changed file:
Changes:
... | ... | @@ -972,8 +972,6 @@ |
972 | 972 | |
973 | 973 | if ( display )
|
974 | 974 | {
|
975 | - XFreeGC( display, surface->gc );
|
|
976 | - |
|
977 | 975 | if ( surface->ximage )
|
978 | 976 | {
|
979 | 977 | if ( !surface->convert )
|
... | ... | @@ -1433,8 +1431,7 @@ |
1433 | 1431 | |
1434 | 1432 | XMapWindow( display, surface->win );
|
1435 | 1433 | |
1436 | - surface->gc = XCreateGC( display, surface->win,
|
|
1437 | - 0L, NULL );
|
|
1434 | + surface->gc = DefaultGC( display, screen );
|
|
1438 | 1435 | |
1439 | 1436 | XSetWMProperties( display, surface->win, &xtp, &xtp,
|
1440 | 1437 | NULL, 0, NULL, NULL, NULL );
|