Selaa lähdekoodia

GUI: remove windres dependency

Herman Schoenfeld 7 vuotta sitten
vanhempi
commit
2e01b09491
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      src/libraries/sphere10/UVisualGrid.pas

+ 5 - 4
src/libraries/sphere10/UVisualGrid.pas

@@ -887,11 +887,12 @@ begin
 
 
       FSearchButton := TSpeedButton.Create(Self);
       FSearchButton := TSpeedButton.Create(Self);
       FSearchButton.Parent := FTopPanelRight;
       FSearchButton.Parent := FTopPanelRight;
-      {$IFDEF WINDOWS}
-      FSearchButton.LoadGlyphFromResourceName(HINSTANCE, 'VISUALGRID_SEARCH');
-      {$ELSE}
+      // HS: remove windres usage due to "directory with spaces" bug during compilation.
+      //{$IFDEF WINDOWS}
+      //FSearchButton.LoadGlyphFromResourceName(HINSTANCE, 'VISUALGRID_SEARCH');
+      //{$ELSE}
       FSearchButton.LoadGlyphFromLazarusResource('VISUALGRID_SEARCH');
       FSearchButton.LoadGlyphFromLazarusResource('VISUALGRID_SEARCH');
-      {$ENDIF}
+      //{$ENDIF}
       with FSearchButton do
       with FSearchButton do
       begin
       begin
         AnchorSideTop.Control := FTopPanelRight;
         AnchorSideTop.Control := FTopPanelRight;