1. 15 Jan, 2001 2 commits
    • Alexander Larsson's avatar
      Use gdk_window_invalidate_rect instead of gdk_window_invalidate_rect_clear · 6a184ba2
      Alexander Larsson authored
      2001-01-15  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkwindow-fb.c:
      	Use gdk_window_invalidate_rect instead of
      	gdk_window_invalidate_rect_clear to minimise flashing.
      	When hiding windows you need to clear the root window though.
      6a184ba2
    • Alexander Larsson's avatar
      For optization, add an full_shapes argument to gdk_fb_clip_region. If this · c288355f
      Alexander Larsson authored
      2001-01-15  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	For optization, add an full_shapes argument to gdk_fb_clip_region.
      	If this is false, only the cliprects of the shapes are used.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Export gdk_fb_window_peek_shape.
      	Add full_shapes to gdk_fb_clip_region.
      
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize):
      	When moving a window, don't clear everything under the it, just the
      	root window. Makes stuff faster and flash less.
      	(gdk_window_get_pointer): Correctly handle offseted shapes, due to
      	USE_CHILD_SHAPE. (gdk_fb_window_peek_shape): Return the correct
      	offset of the shape.
      c288355f
  2. 12 Jan, 2001 2 commits
    • Alexander Larsson's avatar
      Hide mouse pointer while rotation. Show it afterwards. · 8e1a69c2
      Alexander Larsson authored
      2001-01-12  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkmain-fb.c (gdk_fb_set_rotation):
      	Hide mouse pointer while rotation. Show it afterwards.
      8e1a69c2
    • Alexander Larsson's avatar
      Take shaped windows in consideration when generating clip region. · 058c2d93
      Alexander Larsson authored
      2001-01-12  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_clip_region): Take shaped
      	windows in consideration when generating clip region.
      
      	* gdk/linux-fb/gdkfb.h:
      	Huge HACK. Added GDK_FB_USE_CHILD_SHAPE.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Add shape to GdkWindowFBDatat.
      	exported gdk_fb_window_get_abs_shape().
      	removed gdk_fb_draw_lines declaration.
      
      	* gdk/linux-fb/gdkwindow-fb.c (gdk_window_impl_fb_init):
      	Init shape to NULL. (gdk_fb_window_send_crossing_events): Don't
      	send focus changes when there is a grabbed window.
      	(gdk_window_get_pointer): Handle shaped windows.
      	(gdk_fb_region_create_from_bitmap): Convert bitmap to region.
      	(gdk_fb_window_peek_shape): Returns the shape for a window,
      	handles GDK_FB_USE_CHILD_SHAPE.
      	(gdk_fb_window_get_abs_shape): Returns the shape of the window,
      	offseted to absolute positions. Handles GDK_FB_USE_CHILD_SHAPE.
      	(gdk_window_shape_combine_mask): Implement.
      
      	* gtk/gtkwindow-decorate.c:
      	HACK! Set GDK_FB_USE_CHILD_SHAPE on window->frame to make sure
      	setting the shape of a window makes the window transparent.
      058c2d93
  3. 11 Jan, 2001 1 commit
    • Alexander Larsson's avatar
      Added ENABLE_SHADOW_FB · b29eece8
      Alexander Larsson authored
      2001-01-11  Alexander Larsson  <alexl@redhat.com>
      
      	* acconfig.h:
      	Added ENABLE_SHADOW_FB
      
      	* configure.in:
      	Added --disable-shadowfb
      
      	* gdk/linux-fb/gdkcursor-fb.c:
      	Update shadowfb when updating cursor
      
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	Added wrappers for shadowfb that calls 	the normal drawable
      	methods, but calls gdk_shadow_fb_update(bounding box) when
      	GdkWindows are drawed to.
      	Moved gdk_draw_glyphs implementation to _gdk_draw_glyphs
      	which also returns the bounding box.
      
      	* gdk/linux-fb/gdkfb.h:
      	Added GdkFBAngle type and gdk_fb_set_rotation declaration.
      
      	* gdk/linux-fb/gdkgeometry-fb.c:
      	Update shadowfb when scrolling window.
      
      	* gdk/linux-fb/gdkglobals-fb.c:
      	Add _gdk_fb_screen_angle.
      
      	* gdk/linux-fb/gdkkeyboard-fb.c:
      	Test code for screen rotation. Shift-F2 in the xlate driver
      	rotates the screen.
      
      	* gdk/linux-fb/gdkmain-fb.c:
      	Handle shadowfb. Add gdk_fb_set_rotation(). Remove CM and RP.
      
      	* gdk/linux-fb/gdkmouse-fb.c:
      	Use fb_width/height instead of modeinfo.xres/yres.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Added fb_men, fb_width, fb_height & fb_stride. When using
      	shadow fb these can differ from the framebuffer stuff.
      	Declarations for gdk_shadow_fb_update, gdk_shadow_fb_init,
      	gdk_shadow_fb_stop_updates, gdk_fb_recompute_all,
      	_gdk_fb_screen_angle. Removed CM, RP.
      
      	* gdk/linux-fb/gdkrender-fb.c:
      	Added code for shadowfb handling and screen rotation using
      	shadowfb.
      
      	* gdk/linux-fb/gdkwindow-fb.c:
      	Use fb_mem, fb_stride, fb_width, fb_height.
      	Added recompute_rowstride to reset the rowstride of all windows.
      	Added gdk_fb_recompute_all() which recomputes rootwindow size,
      	window abs positions and window rowstrides. Usefull when the
      	rotation has changed.
      b29eece8
  4. 08 Jan, 2001 2 commits
    • Alexander Larsson's avatar
      Correct filename ~/.pangoft2_aliases · 49bb8dfa
      Alexander Larsson authored
      2001-01-08  Alexander Larsson  <alexl@redhat.com>
      
      	* docs/README.linux-fb:
      	Correct filename ~/.pangoft2_aliases
      
      	* gdk/gdkwindow.h:
      	Added new function gdk_window_get_decorations.
      
      	* gdk/linux-fb/gdkfb.h:
      	Removed _gdk_window_get_decorations declaration.
      	Renamed _gdk_window_set_child_handler to
      	gdk_fb_window_set_child_handler.
      
      	* gdk/linux-fb/gdkwindow-fb.c:
      	Renamed _gdk_window_set_child_handler to
      	gdk_fb_window_set_child_handler.
      
      	* gdk/x11/gdkwindow-x11.c:
      	New function gdk_window_get_mwm_hints().
      	Implemented gdk_window_get_decorations.
      
      	* docs/reference/gdk/tmpl/windows.sgml:
      	* docs/reference/gdk/gdk-sections.txt:
      	Added gdk_window_get_decorations docs.
      49bb8dfa
    • Alexander Larsson's avatar
      Possibly send focus events when the mouse moves from one window to · 94dfd3dd
      Alexander Larsson authored
      2001-01-08  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkwindow-fb.c (_gdk_fb_window_find_focus,
      	gdk_fb_window_find_focus, gdk_fb_send_focus_change,
      	gdk_fb_window_send_crossing_events):
      	Possibly send focus events when the mouse moves from one
      	window to another.
      94dfd3dd
  5. 05 Jan, 2001 1 commit
    • Alexander Larsson's avatar
      free colormap in here. Sync from X port. (gdk_fb_set_colormap): allow the · 30888237
      Alexander Larsson authored
      2001-01-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_drawable_finalize): free
      	colormap in here. Sync from X port.
      	(gdk_fb_set_colormap): allow the colormap to be NULL if you like.
      	Sync from X port.
      	(gdk_fb_clip_region): Comment out g_warning about empty clip region.
      	This happens now and then, and i don't think it is a bug.
      	(gdk_fb_draw_polygon): Correctly add extra point if startpoint
      	!= endpoint.
      	(gdk_fb_draw_lines): Don't draw dashed lines if line_style is
      	GDK_LINE_SOLID.
      
      	* gdk/linux-fb/gdkfont-fb.c: Return bogus GdkFont that has
      	some of the fields filled in at least.
      
      	* gdk/linux-fb/miwideline.c: The widths argument to miLineArcI, and
      	miLineArcD is no more, remove it from the function definition.
      30888237
  6. 22 Dec, 2000 1 commit
  7. 21 Dec, 2000 1 commit
  8. 13 Dec, 2000 1 commit
    • Alexander Larsson's avatar
      Add support for ps2 intellimouse. · 02eac1c6
      Alexander Larsson authored
      2000-12-13    <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkmouse-fb.c (mouse_devs):
      	Add support for ps2 intellimouse.
      
      	* gdkkeyboard-fb.c:
      	Move shift-F1 repaint handling to xlate handler only.
      
      	* docs/README.linux-fb:
      	Add imps2 to docs.
      	Document the new refresh keys.
      02eac1c6
  9. 12 Dec, 2000 1 commit
  10. 09 Dec, 2000 1 commit
    • James Henstridge's avatar
      add prot struct member to hold masks for detecting the start of a protocol · 21430de4
      James Henstridge authored
      2000-12-09  James Henstridge  <james@daa.com.au>
      
              * gdk/linux-fb/gdkmouse-fb.c (GdkFBMouseDevice): add prot struct
              member to hold masks for detecting the start of a protocol packet.
              (mouse_devs): add packet start masks for ps2 and ms device types.
              Left the mask for fidmour blank, as I have no idea what it should
              be.
              (handle_mouse_io): skip bytes until we get to the start of a
              packet.  My Logitech mouse seems to be passing an extra NULL pad
              byte, and GPM does a similar thing here.
              (gdk_fb_mouse_ms_open): changed error message to not say psaux, as
              this is the ms mouse driver.
              (gdk_fb_mouse_ms_packet): fix up button handling, which was
              completely broken except for button1.  It was checking the wrong
              bit in the packet for the status of the right mouse button, and
              wrongly assuming right == button2 rather than 3.  I fixed that and
              also added support for middle button (button2).
      21430de4
  11. 08 Dec, 2000 4 commits
    • Alexander Larsson's avatar
      /dev/ttyS0 -> /dev/mouse · 78b055e7
      Alexander Larsson authored
      2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open):
      	/dev/ttyS0 -> /dev/mouse
      78b055e7
    • Alexander Larsson's avatar
      Add dummy gdk_fontset_load · b09aade5
      Alexander Larsson authored
      b09aade5
    • Alexander Larsson's avatar
      Docs, docs, anyone want docs! · 3e3cc022
      Alexander Larsson authored
      2000-12-06  Alexander Larsson  <alexl@redhat.com>
      
      	* docs/README.linux-fb:
      	* docs/Makefile.am:
      	Initial GtkFB docs.
      
      	* gdk/linux-fb/Makefile.am:
      	Define GDK_DATA_PREFIX.
      
      	* gdk/linux-fb/gdkmain-fb.c:
      	Fix typo.
      	Change default display to /dev/fb0.
      
      	* gdk/linux-fb/gdkpango-fb.c:
      	Add $(prefix)/share/fonts/ to font path.
      3e3cc022
    • Alexander Larsson's avatar
      New file containing the abstracted keyboard driver. Most code taken from · 6d0c6b79
      Alexander Larsson authored
      2000-12-08  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkkeyboard-fb.c:
      	New file containing the abstracted keyboard driver. Most code
      	taken from gdkinput-ps2.c
      
      	* gdk/linux-fb/gdkinput-ps2.c:
      	Removed file.
      
      	* gdk/linux-fb/Makefile.am:
      	Added gdkkeyboard-fb.c, removed gdkinput-ps2.c.
      
      	* gdk/linux-fb/gdkcolor-fb.c:
      	display->fb was renamed to display->fb_fd.
      
      	* gdk/linux-fb/gdkcursor-fb.c:
      	gdk_mouse_get_info -> gdk_fb_mouse_get_info
      
      	* gdk/linux-fb/gdkinput.c:
      	Moved gdk_input_init here from gdkinput-ps2.c
      
      	* gdk/linux-fb/gdkmain-fb.c:
      	display->fb was renamed to display->fb_fd.
      	Now the tty and the console is opened here instead
      	of in the keyboard driver. Also check GDK_VT to see what
      	tty to open.
      	Move gdk_beep () here from gdkinput-ps2.c
      	gdk_mouse_get_info -> gdk_fb_mouse_get_info
      
      	* gdk/linux-fb/gdkmouse-fb.c:
      	Add header.
      	gdk_mouse_get_info -> gdk_fb_mouse_get_info
      	Return correct keyboard modifiers.
      	GDK_MOUSETYPE -> GDK_MOUSE_TYPE for consistancy
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Add tty and vt info to display.
      	Add orignal modeinfo storage to display
      	Update global functions
      
      	* gdk/linux-fb/gdkwindow-fb.c:
      	Added gdk_fb_window_find_focus().
      	gdk_mouse_get_info -> gdk_fb_mouse_get_info
      6d0c6b79
  12. 06 Dec, 2000 3 commits
    • Elliot Lee's avatar
      Detect freetype properly Make use of above. · 89709dd1
      Elliot Lee authored
      
      
      * configure.in: Detect freetype properly
      * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of above.
      89709dd1
    • Alexander Larsson's avatar
      Add gdkmouse-fb.c · 7fa13eaf
      Alexander Larsson authored
      2000-12-06  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/Makefile.am:
      	Add gdkmouse-fb.c
      
      	* gdk/linux-fb/gdkmouse-fb.c:
      	New file. Abstracted the mouse drivers a bit.
      
      	* gdk/linux-fb/gdkcursor-fb.c:
      	The cursor hide/show functions was moved here from gdkinput-ps2.c.
      
      	* gdk/linux-fb/gdkinput-ps2.c:
      	Removed old mouse handling code. Moved cursor handling code
      	to gdkcursor-fb.c, moved gdk_fb_window_send_crossing_events() to
      	gdkwindow-fb.c. gdk_input_get_mouseinfo was renamed to
      	gdk_mouse_get_info.
      
      	* gdk/linux-fb/gdkmain-fb.c:
      	Pass NULL pointers for x,y in gdk_mouse_get_info call.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Removed public gdk_fb_find_common_ancestor, added and renamed
      	functions for the new mouse handling code.
      
      	* gdk/linux-fb/gdkwindow-fb.c:
      	Moved gdk_fb_window_send_crossing_events here. added global
      	variable gdk_fb_window_containing_pointer. made
      	gdk_fb_find_common_ancestor static. gdk_input_get_mouseinfo was
      	renamed to gdk_mouse_get_info.
      7fa13eaf
    • Alexander Larsson's avatar
      Update to match latest gmain/gsource changes. · b7f7cba7
      Alexander Larsson authored
      2000-12-06  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkevents-fb.c:
      	Update to match latest gmain/gsource changes.
      
      	* gdk/linux-fb/gdkinput-ps2.c:
      	Bogus gdk_keymap_get_entries_for_keycode implementation so that
      	it links. Will be implemented later.
      b7f7cba7
  13. 05 Dec, 2000 4 commits
    • Alexander Larsson's avatar
      Remove bogus colormap setting. · f2e4ead7
      Alexander Larsson authored
      2000-12-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new):
      	Remove bogus colormap setting.
      f2e4ead7
    • Alexander Larsson's avatar
      More complete colormap handling. Now GdkRGB work in 8 bpp modes. · b9ef6f2c
      Alexander Larsson authored
      2000-12-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkcolor-fb.c:
      	More complete colormap handling. Now GdkRGB work in 8 bpp modes.
      
      	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_image):
      	Must set colormap.
      b9ef6f2c
    • Alexander Larsson's avatar
      Remove old debug g_warning(). (gdk_fb_draw_drawable): The src argument can · f1046d9a
      Alexander Larsson authored
      2000-12-05  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
      	Remove old debug g_warning().
      	(gdk_fb_draw_drawable): The src argument can be either a wrapper
      	or an implementation, just pass the implementation to draw_drawable_2.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Added GDK_IS_DRAWABLE_IMPL_FBDATA()
      
      	* gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
      	clear and invalidate area when window is destroyed.
      	(send_map_events): Remove old commented out code.
      f1046d9a
    • Alexander Larsson's avatar
      Use italic instead of oblique in font aliases. · b7118c80
      Alexander Larsson authored
      2000-12-05  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkpango-fb.c:
      	Use italic instead of oblique in font aliases.
      
      	* gdk/linux-fb/gdkrender-fb.c (gdk_fb_fill_span_generic,
      	_gdk_fb_gc_calc_state): Support GDK_XOR, add g_warning for
      	other unsupported functions.
      b7118c80
  14. 04 Dec, 2000 2 commits
    • Alexander Larsson's avatar
      Divide size by 2, not multiply. · d7714461
      Alexander Larsson authored
      2000-12-04  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkfont-fb.c (gdk_text_width): Divide size by 2, not
      	multiply.
      
      	* gdk/linux-fb/gdkpango-fb.c:
      	Copied some 26.6 scaling macros from pango to clean up the rounding.
      	(pango_fb_font_get_glyph_info): Correct sign on x value.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Removed unreferenced external functions.
      
      	* modules/linux-fb/Makefile.am: Use ` instead of '.
      
      	* modules/linux-fb/basic.c:
      	Remove dead code. In particular the dummy lang engine which broke all
      	pango layouts in GtkFB. Don't include tables-big.i anymore.
      
      	* modules/linux-fb/tables-big.i:
      	Upgrade to latest version from pango. Left for reference, basic_ranges
      	moved to basic.c.
      d7714461
    • Alexander Larsson's avatar
      Return positive descent. · 15c81f52
      Alexander Larsson authored
      2000-12-04  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
      	Return positive descent.
      15c81f52
  15. 01 Dec, 2000 1 commit
    • Alexander Larsson's avatar
      Note: GtkFB now requires Freetype 2 final. · f3e06d23
      Alexander Larsson authored
      2000-12-01    <alexl@redhat.com>
      
      	* gdk/linux-fb/Makefile.am:
      	* modules/linux-fb/Makefile.am:
      	Freetype 2 final uses freetype-config
      
      	* gdk/linux-fb/gdkpango-fb.c:
      	Upgrade to use Freetype 2 final.
      	More flexible support for font aliases, this also fixes a bug with
      	GtkFontSelector, as the aliases must be visible in the font/family list,
      	or GtkFontSelector reads uninitialized memory.
      f3e06d23
  16. 29 Nov, 2000 4 commits
    • Alexander Larsson's avatar
      Set the size of the font from the description. (gdk_text_width): Gross · b1b6c9fc
      Alexander Larsson authored
      2000-11-29  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description):
      	Set the size of the font from the description.
      	(gdk_text_width): Gross hack that calculates the width
      	of text by text_length * size/2. This is necessary because
      	GtkLabel does some ugly gtk_string_width call to calculate
      	an good size.
      	(linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
      b1b6c9fc
    • Alexander Larsson's avatar
      If you pass width or height == 0 to gdk_window_clear_area they should be · 92bc6d41
      Alexander Larsson authored
      2000-11-29  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area):
      	If you pass width or height == 0 to gdk_window_clear_area they
      	should be calculated from the window size.
      92bc6d41
    • Alexander Larsson's avatar
      If there is a grab, but no grab-cursor, use the cursor from the grabbed · 57356cfe
      Alexander Larsson authored
      2000-11-29  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is
      	a grab, but no grab-cursor, use the cursor from the grabbed
      	window. (gdk_fb_window_send_crossing_events): Send normal
      	enter/leave notifications if grab and owner_events == TRUE.
      57356cfe
    • Alexander Larsson's avatar
      Do implicit button grabs, even if the window doesn't want the event. · 3c6f0d5f
      Alexander Larsson authored
      2000-11-29  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkinput-ps2.c (send_button_event):
      	Do implicit button grabs, even if the window doesn't
      	want the event.
      	(gdk_fb_window_send_crossing_events): If there is a
      	grab, only the grabbed window gets normal enter/leave
      	notifications. On ungrab go from grabbed window to current.
      	Don't send any notification to b when propagating from c -> b.
      	If setting a grab on window, don't set prev_window.
      	(handle_mouse_input): Send enter/leave events to the window the
      	mouse is over, not the grabbed one.
      3c6f0d5f
  17. 28 Nov, 2000 3 commits
  18. 25 Nov, 2000 1 commit
    • Alexander Larsson's avatar
      Huge GtkFB patch with lots of small bugfixes and initial selections implementation. · 1c805555
      Alexander Larsson authored
      2000-11-23  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkselection-fb.c:
      	Initial selection implementation.
      
      	* gtk/gtkselection.c:
      	if GDK_WINDOWING_FB defined, include linux-fb/gdkfb.h and look up
      	requestor in gtk_selection_request.
      
      	* gdk/linux-fb/gdkfb.h, gdk/linux-fb/gdkglobals-fb.c:
      	Added gdk_selection_property atom.
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	Export _gdk_selection_window_destroyed.
      	Removed mask_off_x/y from GdkCursorPrivateFB.
      	Removed hbearing, added top, left to PangoFBGlyphInfo.
      
      	* gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_destroy):
      	Call _gdk_selection_window_destroyed
      	(_gdk_windowing_window_init): Don't call gdk_cursor_new() before
      	the root window has been created.
      	(static_dx_hack, static_dy_hack, compare_draw_rects,
      	gdk_fb_window_move_resize): Remove unnecessary sort of rectangles
      	in region. They are already sorted. Instead just traverse them in
      	reverse if draw_direction < 0.
      
      	* gdk/linux-fb/gdkinput-ps2.c (send_button_event):
      	Double-clicks must be sent after the normal button_press.
      	(gdk_fb_cursor_unhide): Remove usage of mask_off_x/y. Clean up.
      
      	* gdk/linux-fb/gdkgeometry-fb.c (gdk_window_scroll):
      	Pass _gdk_fb_screen_gc instead of NULL.
      
      	* gdk/linux-fb/gdkmain-fb.c (_gdk_windowing_init_check):
      	Initialize gdk_selection_property.
      	(gdk_event_make): Remove unused code.
      
      	* gdk/linux-fb/gdkcursor-fb.c:
      	Make the pixmap for the cursor the same size as the mask. Also remove
      	the mask_off_x/y fields in GdkCursorPrivateFB and combine
      	_gdk_cursor_new_from_pixmap() and gdk_cursor_new_from_pixmap()
      	Now the whole cursor is visible.
      
      	* gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_draw_drawable_3):
      	Fix bug where xdest+height instead of ydest+height was used
      	to calculate if the source and dest overlapped. This fixes the
      	redraw bug when the main window in testgtk was scrolled when
      	partially covered by a tall window.
      	Copy rectangles in region in order depending on draw_direction.
      	Also moved the draw_direction flipping of start_y and end_y into
      	the gc functions, as this might not be what all of them want.
      	(gdk_fb_draw_lines): Support dashed lines.
      	(gdk_fb_draw_glyphs): Clean up glyph placement. Also fix positioning
      	so that the text is positioned correctly (was 1 pixel high).
      
      	gdk/linux-fb/gdkgc-fb.c:
      	Initialize cap_style to GTK_CAP_BUTT. This fixes a problem where
      	all lines were drawn a pixel to short. Also checked the default of
      	the rest of the values, and they're the same as X now.
      
      	* gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_glyph_info):
      	Clean up pixel positioning of the glyphs. Just use bgy->top and
      	bgy->left. Also used PANGO_PIXEL where appropriate and added 0.5
      	to all divisions to get correct rounding behaviour.
      
      	* gdk/linux-fb/gdkrender-fb.c (gdk_fb_draw_drawable_generic,
      	gdk_fb_draw_drawable_memmove, gdk_fb_draw_drawable_aa_24):
      	Moved start_y/end_y flip into draw_drawable implementations.
      	Flip also x rendering when draw_direction < 0.
      	Remove unneccesary multiply with draw_direction.
      1c805555
  19. 22 Nov, 2000 2 commits
    • Alexander Larsson's avatar
      Correct calculation of font metrics. Now GtkEntrys have sane size. · 2382edbd
      Alexander Larsson authored
      2000-11-22  Alexander Larsson  <alexl@redhat.com>
      
      	* gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics):
      	Correct calculation of font metrics. Now GtkEntrys have sane
      	size.
      2382edbd
    • Alexander Larsson's avatar
      i2000-11-22 Alexander Larsson <alexl@redhat.com> · 5b4c8afa
      Alexander Larsson authored
              * gdk/gdktypes.h:
      	Add new type GdkSpan
      
      	* docs/reference/gdk/gdk-sections.txt,
      	docs/reference/gdk/tmpl/regions.sgml, gdk/gdkregion-generic.c,
      	gdk/gdkregion.h:
      	Implement and document gdk_region_spans_intersect_foreach.
      
      	* gdk/linux-fb/Makefile.am, gdk/linux-fb/gdkrender-fb.c:
      	Add new file gdkrender-fb.c which contains all core
      	rendering code.
      	Add gdk_fb_fill_rectangle_generic (old rectangle code) and
      	gdk_fb_fill_rectangle_simple_16, gdk_fb_fill_rectangle_simple_32
      	(optimized rectangle fillers).
      
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	Move all rendering code to gdkrender-fb.c.
      	Change from using GdkRectangles and GdkSegments for spans to GdkSpan.
      	Use the new span intersection functions in gdk_fb_fill_spans.
      	gdk_fb_draw_rectangle() clips filled rectangles and calls
      	gc->fill_rectangle with the result.
      	gdk_fb_fill_spans() gets extra argument "sorted".
      
      	* gdk/linux-fb/gdkevents-fb.c:
      	Remove unused includes and defines.
      	New function gdk_fb_get_time() to get correct time for events.
      
      	* gdk/linux-fb/gdkinput-ps2.c:
      	Use gdk method of generating multiple-clicks (gdk_event_button_generate)
      	Make sure to set the time of all events.
      
      	* gdk/linux-fb/gdkmain-fb.c:
      	Use gdk_fb_get_time ().
      
      	* gdk/linux-fb/gdkprivate-fb.h:
      	New virtual GC calls: fill_span & fill_rectangle.
      	Export gdk_fb_get_time().
      	gdk_fb_fill_spans() gets extra argument "sorted".
      
      	* gdk/linux-fb/mi*.c:
      	Use GdkSpan instead of GdkRectangle.
      	Pass correct sorted to gdk_fb_fill_spans. (sorted value taken
      	from XFree 4 source)
      5b4c8afa
  20. 20 Nov, 2000 1 commit
    • Alexander Larsson's avatar
      Removed unused arguments from gdk_fb_drawable_get_pixel(). · 2999f465
      Alexander Larsson authored
      2000-11-20  Alexander Larsson  <alla@lysator.liu.se>
      
      	* gdk/linux-fb/gdkdrawable-fb2.c:
      	Removed unused arguments from gdk_fb_drawable_get_pixel().
      
      	* gdk/linux-fb/gdkinput-ps2.c (handle_input_ps2):
      	Renamed fidur specific mouse packet data in MouseDevice to
      	generic. Used it in ps2 mouse handling code to avoid blocking
      	reads.
      2999f465
  21. 15 Nov, 2000 2 commits