~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/widgets/openglhelper.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-10-24 21:28:17 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131024212817-ej1skb9og09d3ht6
Tags: 3.5.0.1137.31+dfsg-1
New upstream release [October 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *  $Id: openglhelper.cpp $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
 
 *  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
 
6
 *  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
7
7
 *  http://ginkgo-cadx.com
8
8
 *
9
9
 *  This file is licensed under LGPL v3 license.
378
378
         *  q3   q2
379
379
         *  q0   q1
380
380
         * */
381
 
        
 
381
        
382
382
        GNC::GCS::Vector escala;
383
383
        if (aplicarEscala) {
384
384
                escala = c->RelacionImagenPantalla();
538
538
 
539
539
GNC::GCS::GLHelper::TVector GNC::GCS::GLHelper::calcularBoundingBox(TTextura& tc, const std::string& texto, float anchoMaximo, TAlineamiento alineamiento)
540
540
{
541
 
        if (!tc.contextoCreado) {
542
 
                tc.Redimensionar(2, 2);
 
541
        if (!tc.contextoCreado) {
 
542
                tc.Redimensionar(2, 2);
543
543
        }
544
544
        return GNC::GCS::Widgets::HelperTexto::procesarTexto(tc.cr, texto, NULL, anchoMaximo, alineamiento, false);
545
545
}