Subversion Repositories filter_foundry

Compare Revisions

Ignore whitespace Rev 170 → Rev 171

/trunk/preview_mac.c
1,9 → 1,9
/*
This file is part of Filter Foundry, a filter plugin for Adobe Photoshop
Copyright (C) 2003-7 Toby Thain, toby@telegraphics.com.au
Copyright (C) 2003-2019 Toby Thain, toby@telegraphics.com.au
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
12,7 → 12,7
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
27,7 → 27,7
 
pascal void preview_item(DialogRef dp,DialogItemIndex item){
GrafPtr port;
 
ENTERCALLBACK();
 
GetPort(&port);
37,7 → 37,7
PIUNLOCKHANDLE(preview_handle);
 
FrameRect(&preview_rect);
 
SetPort(port);
 
EXITCALLBACK();
47,7 → 47,7
// it implements an event filter for plugins that need
// only preview functionality (without sliders).
 
pascal Boolean previewfilter(DialogRef dialog,EventRecord *event,short *item){
pascal Boolean previewfilter(DialogRef dialog,EventRecord *event,short *item){
int i;
Point pt,origscroll,newscroll;
Boolean result = false,f;
59,7 → 59,7
GetPort(&oldport);
SetPortDialogPort(dialog);
 
if( !event->what || (event->what == updateEvt
if( !event->what || (event->what == updateEvt
&& (WindowRef)event->message != GetDialogWindow(dialog)) )
{ // pass null events and update events to Photoshop
gpb->processEvent(event);
67,7 → 67,7
else if(event->what == mouseDown){
pt = event->where;
GlobalToLocal(&pt);
 
i = FindDialogItem(dialog,pt)+1;
if(i == PREVIEWITEM){
SetCursor(*handcursor);
88,7 → 88,7
}
else
result = StdFilterProc(dialog,event,item);
 
SetPort(oldport);
 
EXITCALLBACK();