[DEVELOPMENT ENVIRONMENT]
* NEW: Make better module icons. git-svn-id: svn://localhost/gambas/trunk@1928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
|
@ -554,12 +554,8 @@ Private Sub MakeModuleIcon(sModule As String, Optional iSize As Integer) As Pict
|
|||
hPict = Picture[sKey]
|
||||
If Not hPict Then
|
||||
hImage = $hFileImage.Stretch(iSize, iSize)
|
||||
If iSize = 16 Then
|
||||
hImageModule = Image.Load("img/module" &/ sModule & "-16.png")
|
||||
Else
|
||||
hImageModule = Image.Load("img/module" &/ sModule & ".png").Stretch(iSize, iSize)
|
||||
Endif
|
||||
hImage.Draw(hImageModule, 0, 0)
|
||||
hImageModule = Image.Load("img/module" &/ sModule & ".png") '.Stretch(iSize / 2, iSize / 2)
|
||||
hImage.Draw(hImageModule, iSize / 4, iSize / 4, iSize / 2, iSize / 2)
|
||||
hPict = hImage.Picture
|
||||
Picture[sKey] = hPict
|
||||
Endif
|
||||
|
|
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 385 B After Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 320 B |
Before Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 648 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 964 B |