Options to disable bitmap stretching

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2685 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2003-06-27 20:37:50 +00:00
parent c3fb01e1d4
commit 02530d3e1b
3 changed files with 32 additions and 5 deletions

View file

@ -381,6 +381,11 @@
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Text" "$(MUI_TEXT_WELCOME_INFO_TEXT)"
!endif
;Set stretching option
!ifdef MUI_SPECIALBITMAP_NOSTRETCH
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Flags" ""
!endif
!endif
!macroend
@ -390,7 +395,11 @@
!ifdef MUI_HEADERBITMAP
InitPluginsDir
File "/oname=$PLUGINSDIR\modern-header.bmp" "${MUI_HEADERBITMAP}"
SetBrandingImage /IMGID=1046 /RESIZETOFIT "$PLUGINSDIR\modern-header.bmp"
!ifndef MUI_HEADERBITMAP_NOSTRETCH
SetBrandingImage /IMGID=1046 /RESIZETOFIT "$PLUGINSDIR\modern-header.bmp"
!else
SetBrandingImage /IMGID=1046 "$PLUGINSDIR\modern-header.bmp"
!endif
!endif
!macroend
@ -979,6 +988,9 @@
GetDlgItem ${MUI_TEMP2} ${MUI_TEMP1} 1202
SetBkColor ${MUI_TEMP2} "${MUI_BGCOLOR}"
GetDlgItem ${MUI_TEMP2} ${MUI_TEMP1} 1200
SetBkColor ${MUI_TEMP2} "${MUI_BGCOLOR}"
!ifdef MUI_CUSTOMFUNCTION_WELCOME_SHOW
Call "${MUI_CUSTOMFUNCTION_WELCOME_SHOW}"