mirror of
https://github.com/fltk/fltk.git
synced 2026-06-07 09:13:58 +08:00
Replaced all occurrences of the deprecated fl_clip() function by
fl_push_clip(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6551 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ const char* name[6] = {"X", "Y", "R", "start", "end", "rotate"};
|
||||
|
||||
class Drawing : public Fl_Widget {
|
||||
void draw() {
|
||||
fl_clip(x(),y(),w(),h());
|
||||
fl_push_clip(x(),y(),w(),h());
|
||||
fl_color(FL_DARK3);
|
||||
fl_rectf(x(),y(),w(),h());
|
||||
fl_push_matrix();
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ int points;
|
||||
|
||||
class Drawing : public Fl_Widget {
|
||||
void draw() {
|
||||
fl_clip(x(),y(),w(),h());
|
||||
fl_push_clip(x(),y(),w(),h());
|
||||
fl_color(FL_DARK3);
|
||||
fl_rectf(x(),y(),w(),h());
|
||||
fl_push_matrix();
|
||||
|
||||
Reference in New Issue
Block a user