~ubuntu-branches/ubuntu/trusty/plee-the-bear/trusty-proposed

« back to all changes in this revision

Viewing changes to bear-engine/core/src/visual/code/scene_writing.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Julien Jorge, Julien Jorge
  • Date: 2010-11-17 20:13:34 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20101117201334-o4dp7uq437to7oxb
Tags: 0.5.1-1
[ Julien Jorge ]
* New upstream release (Closes: #565062, #546514).
* Add armhf architecture (Closes: #604689).
* Remove patches integrated upstream: rpath-editors.diff, rpath-game.diff,
  editors-menu-section.diff.
* Bump the Standard-Version, no changes.
* Update my email address.
* Set build dependency of libclaw to 1.6.0.
* Add the missing ${misc:Depends} in debian/control.
* List gettext translations in bear-factory.install and plee-the-bear.install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  Bear Engine
3
3
 
4
 
  Copyright (C) 2005-2009 Julien Jorge, Sebastien Angibaud
 
4
  Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
5
5
 
6
6
  This program is free software; you can redistribute it and/or modify it
7
7
  under the terms of the GNU General Public License as published by the
28
28
 */
29
29
#include "visual/scene_writing.hpp"
30
30
 
 
31
#include "visual/base_screen.hpp"
 
32
#include "visual/scene_element.hpp"
31
33
#include "visual/scene_sprite.hpp"
32
34
#include "visual/bitmap_writing.hpp"
33
35
 
72
74
{
73
75
  return rectangle_type
74
76
    ( get_position().x, get_position().y,
75
 
      m_writing.get_width() * get_scale_factor_x(),
76
 
      m_writing.get_height() * get_scale_factor_y() );
 
77
      get_position().x + m_writing.get_width() * get_scale_factor_x(),
 
78
      get_position().y + m_writing.get_height() * get_scale_factor_y() );
77
79
} // scene_writing::get_bounding_box()
78
80
 
79
81
/*----------------------------------------------------------------------------*/
85
87
void bear::visual::scene_writing::burst
86
88
( const rectangle_list& boxes, scene_element_list& output ) const
87
89
{
88
 
  output.push_front( scene_element(*this) );
 
90
  output.push_back( scene_element(*this) );
89
91
} // scene_writing::burst()
90
92
 
91
93
/*----------------------------------------------------------------------------*/