~ubuntu-branches/ubuntu/trusty/xmedcon/trusty-proposed

« back to all changes in this revision

Viewing changes to source/ximages.c

  • Committer: Bazaar Package Importer
  • Author(s): Roland Marcus Rutschmann
  • Date: 2005-02-17 11:47:33 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050217114733-196o14tsrwd7wwsz
Tags: 0.9.8.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *                XMdcImagesView()             - Show the images (viewer)  *
17
17
 *                                                                         *
18
18
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
19
 
/* $Id: ximages.c,v 1.17 2004/05/09 22:48:04 enlf Exp $
 
19
/* $Id: ximages.c,v 1.20 2004/10/21 23:48:39 enlf Exp $
20
20
 */
21
21
 
22
22
/*
232
232
 
233
233
     my.realnumber[ri] = i;
234
234
 
235
 
     my.im[ri] = XMdcBuildGdkPixbufFI(my.fi,i,sGbc.mod.vgbc,MDC_YES);
 
235
     my.im[ri] = XMdcBuildGdkPixbufFI(my.fi,i,sGbc.mod.vgbc);
236
236
 
237
237
     if (my.image[ri] == NULL) {
238
238
 
239
239
       my.image[ri] = gtk_drawing_area_new();
240
240
 
241
241
       gtk_drawing_area_size(GTK_DRAWING_AREA(my.image[ri])
242
 
           ,(gint)(XMdcResize(my.fi->mwidth)  + XMDC_IMAGE_BORDER)
243
 
           ,(gint)(XMdcResize(my.fi->mheight) + XMDC_IMAGE_BORDER));
 
242
           ,(gint)(XMdcScaleW(my.fi->mwidth)  + XMDC_IMAGE_BORDER)
 
243
           ,(gint)(XMdcScaleH(my.fi->mheight) + XMDC_IMAGE_BORDER));
244
244
 
245
245
       gtk_widget_set_events (my.image[ri], GDK_EXPOSURE_MASK
246
246
                                          | GDK_BUTTON_PRESS_MASK
303
303
void XMdcDisplayImages(void)
304
304
{
305
305
  XMdcProgressBar(MDC_PROGRESS_BEGIN,0.,"Preparing Viewer:");
 
306
  XMdcSetImageScales();
306
307
  XMdcGetBoardDimensions();
307
308
  XMdcHandleBoardDimensions();
308
309
  XMdcBuildViewerWindow();