Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 395747 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +7 lines)
Line  Link Here
0
-- src/widgets/Panel.cxx
0
++ src/widgets/Panel.cxx
Lines 37-43 Link Here
37
int Panel::orgx()
37
int Panel::orgx()
38
{
38
{
39
	int oldx = w();
39
	int oldx = w();
40
	short* p = sizes()+8;
40
	int* p = sizes()+8;
41
	for (int i=children(); i--; p += 4)
41
	for (int i=children(); i--; p += 4)
42
		if (p[1] < oldx) oldx = p[1];
42
		if (p[1] < oldx) oldx = p[1];
43
	return oldx;
43
	return oldx;
Lines 46-52 int Panel::orgx() Link Here
46
int Panel::orgy()
46
int Panel::orgy()
47
{
47
{
48
	int oldy = h();
48
	int oldy = h();
49
	short* p = sizes()+8;
49
	int* p = sizes()+8;
50
	for (int i=children(); i--; p += 4)
50
	for (int i=children(); i--; p += 4)
51
		if (p[3] < oldy) oldy = p[3];
51
		if (p[3] < oldy) oldy = p[3];
52
	return oldy;
52
	return oldy;
Lines 55-61 int Panel::orgy() Link Here
55
void Panel::position(int oix, int oiy, int newx, int newy) {
55
void Panel::position(int oix, int oiy, int newx, int newy) {
56
//printf("oix %3d, oiy %3d, nux %3d, nuy %3d\n", oix, oiy, newx, newy);
56
//printf("oix %3d, oiy %3d, nux %3d, nuy %3d\n", oix, oiy, newx, newy);
57
	Fl_Widget* const* a = array();
57
	Fl_Widget* const* a = array();
58
	short* p = sizes();
58
	int* p = sizes();
59
//printf("p0 %3d, p1 %3d, p2 %3d, p3 %3d\n", p[0], p[1], p[2], p[3]);
59
//printf("p0 %3d, p1 %3d, p2 %3d, p3 %3d\n", p[0], p[1], p[2], p[3]);
60
//printf("p4 %3d, p5 %3d, p6 %3d, p7 %3d\n", p[0], p[1], p[2], p[3]);
60
//printf("p4 %3d, p5 %3d, p6 %3d, p7 %3d\n", p[0], p[1], p[2], p[3]);
61
	p += 8; // skip group & resizable's saved size
61
	p += 8; // skip group & resizable's saved size
Lines 90-96 void Panel::position(int oix, int oiy, i Link Here
90
// move the lower-right corner (sort of):
90
// move the lower-right corner (sort of):
91
void Panel::resize(int X,int Y,int W,int H) {
91
void Panel::resize(int X,int Y,int W,int H) {
92
	// remember how much to move the child widgets:
92
	// remember how much to move the child widgets:
93
	short* p = sizes();
93
	int* p = sizes();
94
	int OX = x();
94
	int OX = x();
95
	int OY = y();
95
	int OY = y();
96
	int OW = w();
96
	int OW = w();
Lines 191-198 int Panel::handle(int event) { Link Here
191
		int oldx = 0;
191
		int oldx = 0;
192
		int oldy = 0;
192
		int oldy = 0;
193
		Fl_Widget*const* a = array();
193
		Fl_Widget*const* a = array();
194
		short* q = sizes();
194
		int* q = sizes();
195
		short* p = q+8;
195
		int* p = q+8;
196
		for (int i=children(); i--; p += 4) {
196
		for (int i=children(); i--; p += 4) {
197
			Fl_Widget* o = *a++;
197
			Fl_Widget* o = *a++;
198
			if (o == resizable()) continue;
198
			if (o == resizable()) continue;

Return to bug 395747