ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC/UI.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC/UI.pm (file contents):
Revision 1.350 by root, Sat Aug 19 18:39:24 2006 UTC vs.
Revision 1.351 by root, Sun Oct 1 12:08:58 2006 UTC

898 glClear GL_COLOR_BUFFER_BIT; 898 glClear GL_COLOR_BUFFER_BIT;
899 899
900 { 900 {
901 package CFPlus::UI::Base; 901 package CFPlus::UI::Base;
902 902
903 ($draw_x, $draw_y, $draw_w, $draw_h) = 903 local ($draw_x, $draw_y, $draw_w, $draw_h) =
904 (0, 0, $self->{w}, $self->{h}); 904 (0, 0, $self->{w}, $self->{h});
905 } 905 }
906 906
907 $self->_render; 907 $self->_render;
908 }; 908 };
2959 2959
2960 $self->{texture} ||= new_from_opengl CFPlus::Texture $W, $H, sub { 2960 $self->{texture} ||= new_from_opengl CFPlus::Texture $W, $H, sub {
2961 glClearColor 0, 0, 0, 0; 2961 glClearColor 0, 0, 0, 0;
2962 glClear GL_COLOR_BUFFER_BIT; 2962 glClear GL_COLOR_BUFFER_BIT;
2963 2963
2964 {
2965 package CFPlus::UI::Base;
2966
2967 local ($draw_x, $draw_y, $draw_w, $draw_h) =
2968 (0, 0, $self->{w}, $self->{h});
2969 }
2970
2964 my $top = int $self->{children}[1]{range}[0]; 2971 my $top = int $self->{children}[1]{range}[0];
2965 2972
2966 my $paridx = 0; 2973 my $paridx = 0;
2967 my $top_paragraph; 2974 my $top_paragraph;
2968 my $top = int $self->{children}[1]{range}[0]; 2975 my $top = int $self->{children}[1]{range}[0];
4124 glLoadIdentity; 4131 glLoadIdentity;
4125 4132
4126 { 4133 {
4127 package CFPlus::UI::Base; 4134 package CFPlus::UI::Base;
4128 4135
4129 ($draw_x, $draw_y, $draw_w, $draw_h) = 4136 local ($draw_x, $draw_y, $draw_w, $draw_h) =
4130 (0, 0, $self->{w}, $self->{h}); 4137 (0, 0, $self->{w}, $self->{h});
4131 } 4138 }
4132 4139
4133 $self->_draw; 4140 $self->_draw;
4134} 4141}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines