Subversion Repositories filter_foundry

Compare Revisions

No changes between revisions

Regard whitespace Rev 432 → Rev 433

/trunk/RELEASE.md
7,8 → 7,10
- manifest32.xml and manifest64.xml
- README.md
- CHANGELOG.md
2. Run **visual_studio\vc_make_3264.bat** . This creates a 32-bit DLL and a 64-bit DLL and mix them together.
3. Compile with OpenWatcom 2.0. This creates a 32-bit DLL only, and then mix Watcom-32-bit and VisualC-64-bit together. (This step is done because we want Win9x compatibility and therefore, the 32-bit 8BF must be built with OpenWatcom 2.0. To build for Windows NT 3.1, we need OpenWatcom 2.0, becauase OpenWatcom 1.9 is not compatible with it)
2. Run **visual_studio\vc_make_3264.bat** . This creates a 32-bit DLL and a 64-bit DLL and mixes them together (required for 32/64 bit creating of standalone filters).
3. Compile with OpenWatcom 2.0. This creates a 32-bit DLL only, and then mix Watcom-32-bit and VisualC-64-bit together.
(This step is done because we want Win9x compatibility and therefore, the 32-bit 8BF must be built with OpenWatcom 2.0.
To build for Windows NT 3.1, we need OpenWatcom 2.0, becauase OpenWatcom 1.9 is not compatible with it)
4. Commit to SVN with commit message `=== RELEASE 1.7.0.x ===`
5. Sync SVN with GitHub
6. Release a ZIP to [ViaThinkSoft](https://www.viathinksoft.com/projects/filter_foundry) with following contents:
/trunk/load_win.c
29,6 → 29,10
static BOOL CALLBACK enumnames(HMODULE hModule, LPCTSTR lpszType,
LPTSTR lpszName, LONG_PTR lParam)
{
UNREFERENCED_PARAMETER(lParam); // TODO: Pass parm_id as pointer in lParam
UNREFERENCED_PARAMETER(hModule);
UNREFERENCED_PARAMETER(lpszType);
 
if (IS_INTRESOURCE(lpszName)) {
parm_id = (UINT16)((intptr_t)lpszName & 0xFFFF);
return false; // we only want the first one
/trunk/main.c
723,6 → 723,8
void DoFinish(FilterRecordPtr pb){
int i;
 
UNREFERENCED_PARAMETER(pb);
 
WriteScriptParamsOnRead();
 
for(i = 4; i--;){
/trunk/make.c
300,6 → 300,8
unsigned char* tmp = *((unsigned char**)aeteptr);
tmp += (intptr_t)tmp & 1;
*aeteptr = (void*)tmp;
#else
UNREFERENCED_PARAMETER(aeteptr);
#endif
}
#define AETE_ALIGN_WORD() _aete_align_word(&aeteptr);
/trunk/preview.c
496,6 → 496,8
VRect srcRect;
UIRECT imagebounds;
 
UNREFERENCED_PARAMETER(dp);
 
if(preview_handle && preview_complete){
 
srcRect = preview_pmap.bounds;
/trunk/read.c
200,6 → 200,8
int format_version = -1;
int i;
 
UNREFERENCED_PARAMETER(reason);
 
if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
if ((h = readfileintohandle(refnum))) {
char* q = (char*)PILOCKHANDLE(h, false);
696,6 → 698,8
Boolean res = false;
FILEREF refnum;
 
UNREFERENCED_PARAMETER(reason);
 
if (!fileHasExtension(sfr, ".txt")) return false;
 
if (FSpOpenDF(&sfr->sfFile, fsRdPerm, &refnum) == noErr) {
/trunk/screenshots/Windows NT 3.11.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/telegraphics_common/adobeplugin/dllmain.c
23,7 → 23,9
 
BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpReserved);
 
BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpReserved){
BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD fdwReason, LPVOID lpReserved)
{
UNREFERENCED_PARAMETER(lpReserved);
 
if (fdwReason == DLL_PROCESS_ATTACH)
hDllInstance = hInstance;
/trunk/telegraphics_common/tt/choosefile_win.c
34,11 → 34,13
 
Boolean fileHasExtension(StandardFileReply* sfr, const char* extension) {
char name[MAX_PATH + 1];
// TODO: strcasecmp not defined in OpenWatcom 2.0 ?
return sfr->nFileExtension && !strcasecmp(myp2cstrcpy(name, sfr->sfFile.name) + sfr->nFileExtension - 1, extension);
}
 
Boolean choosefiletypes(StringPtr prompt,StandardFileReply *sfr,NavReplyRecord *reply,
OSType types[],int ntypes,const char *lpstrFilter,HWND hwndOwner){
UNREFERENCED_PARAMETER(ntypes);
return choosefile(prompt,sfr,reply,types[0],lpstrFilter,hwndOwner);
}
 
47,6 → 49,9
char file[MAX_PATH]={0};
char title[0x100];
 
UNREFERENCED_PARAMETER(type);
UNREFERENCED_PARAMETER(reply);
 
ZeroMemory(&ofn, sizeof(ofn));
 
ofn.lStructSize = sizeof(ofn);
82,6 → 87,10
char file[MAX_PATH];
char title[0x100];
 
UNREFERENCED_PARAMETER(fileCreator);
UNREFERENCED_PARAMETER(reply);
UNREFERENCED_PARAMETER(fileType);
 
ZeroMemory(&ofn, sizeof(ofn));
 
ofn.lStructSize = sizeof(ofn);
110,5 → 119,6
}
 
OSErr completesave(NavReplyRecord *reply){
UNREFERENCED_PARAMETER(reply);
return noErr;
}
/trunk/telegraphics_common/tt/compat_win_resource.c
883,6 → 883,8
DWORD mapping_size, num_sections = 0;
void* base = NULL;
 
UNREFERENCED_PARAMETER(updates);
 
mapping_size = GetFileSize(file, NULL);
 
mapping = CreateFileMappingA(file, NULL, PAGE_READONLY, 0, 0, NULL);
/trunk/telegraphics_common/tt/file_compat_win.c
65,6 → 65,10
HANDLE h;
char name[MAX_PATH+1];
 
UNREFERENCED_PARAMETER(creator);
UNREFERENCED_PARAMETER(scriptTag);
UNREFERENCED_PARAMETER(fileType);
 
h = CreateFile(myp2cstrcpy(name,spec->name),0,0,0,CREATE_NEW,0,0);
// sprintf(s,"FSpCreate(\"%s\"):%#x",spec->name,h); dbg(s);
if( h == INVALID_HANDLE_VALUE )
/trunk/ui.c
68,6 → 68,8
 
void updateglobals(DIALOGREF dp){
 
UNREFERENCED_PARAMETER(dp);
 
// DM 28 Nov 2021: Removed this function. It makes no sense! The internal state is in the memory
// and the dialog is only the view!
 
/trunk/ui_build_win.c
37,6 → 37,8
INT_PTR CALLBACK builddlgproc(HWND hDlg, UINT wMsg, WPARAM wParam, LPARAM lParam){
int item;
 
UNREFERENCED_PARAMETER(lParam);
 
switch(wMsg){
case WM_INITDIALOG:
centre_window(hDlg);
/trunk/ui_win.c
461,7 → 461,7
}
 
// Make "FoundrySlider" a subclass of "slider" then
return MakeSimpleSubclass("FoundrySlider", "slider");
return MakeSimpleSubclass(targetClass, "slider");
}
 
typedef void(__stdcall* f_InitCommonControls)();
491,12 → 491,12
}
 
// Make "FoundrySlider" a subclass of "msctls_trackbar32" then
return MakeSimpleSubclass("FoundrySlider", "msctls_trackbar32");
return MakeSimpleSubclass(targetClass, "msctls_trackbar32");
}
 
Boolean Slider_Init_None(LPCSTR targetClass) {
// Make "FoundrySlider" a subclass of "STATIC" (making it invisible)
return MakeSimpleSubclass("FoundrySlider", "STATIC");
return MakeSimpleSubclass(targetClass, "STATIC");
}
 
Boolean maindialog(FilterRecordPtr pb){
/trunk/ui_win.rc
160,7 → 160,7
CAPTION "Make Standalone Filter"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK", IDOK, 156,219, 42,14
DEFPUSHBUTTON "OK...", IDOK, 156,219, 42,14
 
/* for initial values of the following EDITTEXT fields, see ui_build.c */
EDITTEXT CATEGORYITEM, 50, 10, 148,12