mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 03:15:21 +08:00
Cast value to int to avoid compiler warnings...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1290,7 +1290,7 @@ void min_w_cb(Fl_Value_Input* i, void* v) {
|
|||||||
i->parent()->show();
|
i->parent()->show();
|
||||||
i->value(((Fl_Window_Type*)current_widget)->sr_min_w);
|
i->value(((Fl_Window_Type*)current_widget)->sr_min_w);
|
||||||
} else {
|
} else {
|
||||||
int n = i->value();
|
int n = (int)i->value();
|
||||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||||
if (o->selected && o->is_window()) {
|
if (o->selected && o->is_window()) {
|
||||||
((Fl_Window_Type*)current_widget)->sr_min_w = n;
|
((Fl_Window_Type*)current_widget)->sr_min_w = n;
|
||||||
@@ -1303,7 +1303,7 @@ void min_h_cb(Fl_Value_Input* i, void* v) {
|
|||||||
if (v == LOAD) {
|
if (v == LOAD) {
|
||||||
i->value(((Fl_Window_Type*)current_widget)->sr_min_h);
|
i->value(((Fl_Window_Type*)current_widget)->sr_min_h);
|
||||||
} else {
|
} else {
|
||||||
int n = i->value();
|
int n = (int)i->value();
|
||||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||||
if (o->selected && o->is_window()) {
|
if (o->selected && o->is_window()) {
|
||||||
((Fl_Window_Type*)current_widget)->sr_min_h = n;
|
((Fl_Window_Type*)current_widget)->sr_min_h = n;
|
||||||
@@ -1316,7 +1316,7 @@ void max_w_cb(Fl_Value_Input* i, void* v) {
|
|||||||
if (v == LOAD) {
|
if (v == LOAD) {
|
||||||
i->value(((Fl_Window_Type*)current_widget)->sr_max_w);
|
i->value(((Fl_Window_Type*)current_widget)->sr_max_w);
|
||||||
} else {
|
} else {
|
||||||
int n = i->value();
|
int n = (int)i->value();
|
||||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||||
if (o->selected && o->is_window()) {
|
if (o->selected && o->is_window()) {
|
||||||
((Fl_Window_Type*)current_widget)->sr_max_w = n;
|
((Fl_Window_Type*)current_widget)->sr_max_w = n;
|
||||||
@@ -1329,7 +1329,7 @@ void max_h_cb(Fl_Value_Input* i, void* v) {
|
|||||||
if (v == LOAD) {
|
if (v == LOAD) {
|
||||||
i->value(((Fl_Window_Type*)current_widget)->sr_max_h);
|
i->value(((Fl_Window_Type*)current_widget)->sr_max_h);
|
||||||
} else {
|
} else {
|
||||||
int n = i->value();
|
int n = (int)i->value();
|
||||||
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
for (Fl_Type *o = Fl_Type::first; o; o = o->next) {
|
||||||
if (o->selected && o->is_window()) {
|
if (o->selected && o->is_window()) {
|
||||||
((Fl_Window_Type*)current_widget)->sr_max_h = n;
|
((Fl_Window_Type*)current_widget)->sr_max_h = n;
|
||||||
|
|||||||
Reference in New Issue
Block a user