Changeset 36 for trunk/Lucide


Ignore:
Timestamp:
Jun 3, 2006, 6:19:06 AM (15 years ago)
Author:
Eugene Romanenko
Message:

djvu plugin should be GPL, as uses GPL code

Location:
trunk/Lucide/SOURCE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/docViewer.cpp

    r35 r36  
    294294        double pgpos = pagenumToPos( page ) / VScrollStep;
    295295        vertScroll( hWndDoc, MPFROM2SHORT( pgpos, SB_SLIDERPOSITION ), NULLHANDLE );
    296         drawPage();
     296        //drawPage();
    297297    }
    298298    else
     
    14961496}
    14971497
     1498static int zzz = 0;
    14981499// static, window procedure
    14991500MRESULT EXPENTRY DocumentViewer::docViewProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
  • trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.cpp

    r35 r36  
    1 /* ***** BEGIN LICENSE BLOCK *****
    2  * Version: CDDL 1.0/LGPL 2.1
     1/*
     2 * Copyright (c) 2006, Eugene Romanenko, netlabs.org
    33 *
    4  * The contents of this file are subject to the COMMON DEVELOPMENT AND
    5  * DISTRIBUTION LICENSE (CDDL) Version 1.0 (the "License"); you may not use
    6  * this file except in compliance with the License. You may obtain a copy of
    7  * the License at http://www.sun.com/cddl/
     4 *----------------------------------------------------------------------
     5 * This file is part of djvu plugin for Lucide (ludjvu).
    86 *
    9  * Software distributed under the License is distributed on an "AS IS" basis,
    10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
    11  * for the specific language governing rights and limitations under the
    12  * License.
     7 *  ludjvu is free software; you can redistribute it and/or modify
     8 *  it under the terms of the GNU General Public License as published by
     9 *  the Free Software Foundation; either version 2 of the License, or
     10 *  (at your option) any later version.
    1311 *
    14  * The Initial Developer of the Original Code is
    15  * Eugene Romanenko, netlabs.org.
    16  * Portions created by the Initial Developer are Copyright (C) 2006
    17  * the Initial Developer. All Rights Reserved.
     12 *  ludjvu is distributed in the hope that it will be useful,
     13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 *  GNU General Public License for more details.
    1816 *
    19  * Contributor(s):
    20  *
    21  * Alternatively, the contents of this file may be used under the terms of
    22  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
    23  * in which case the provisions of the LGPL are applicable instead of those
    24  * above. If you wish to allow use of your version of this file only under the
    25  * terms of the LGPL, and not to allow others to use your version of this file
    26  * under the terms of the CDDL, indicate your decision by deleting the
    27  * provisions above and replace them with the notice and other provisions
    28  * required by the LGPL. If you do not delete the provisions above, a recipient
    29  * may use your version of this file under the terms of any one of the CDDL
    30  * or the LGPL.
    31  *
    32  * ***** END LICENSE BLOCK ***** */
    33 
     17 *  You should have received a copy of the GNU General Public License
     18 *  along with gtk-gnutella; if not, write to the Free Software
     19 *  Foundation, Inc.:
     20 *      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     21 *----------------------------------------------------------------------
     22 */
    3423
    3524
     
    5645
    5746
    58 #define DJVU_SCALE 0.2
     47#define SCALE_FACTOR 0.2
    5948
    6049
     
    154143
    155144    if ( width != NULL ) {
    156         *width = info.width * DJVU_SCALE;
     145        *width = info.width * SCALE_FACTOR;
    157146    }
    158147    if ( height != NULL ) {
    159         *height = info.height * DJVU_SCALE;
     148        *height = info.height * SCALE_FACTOR;
    160149    }
    161150}
     
    187176    }
    188177
    189     page_width = ddjvu_page_get_width( d_page ) * scale * DJVU_SCALE;
    190     page_height = ddjvu_page_get_height( d_page ) * scale * DJVU_SCALE;
     178    page_width = ddjvu_page_get_width( d_page ) * scale * SCALE_FACTOR;
     179    page_height = ddjvu_page_get_height( d_page ) * scale * SCALE_FACTOR;
    191180
    192181    prect.x = 0;
Note: See TracChangeset for help on using the changeset viewer.