summaryrefslogtreecommitdiff
path: root/gdk/linux-fb
Commit message (Collapse)AuthorAgeFilesLines
* Added ENABLE_SHADOW_FBAlexander Larsson2001-01-1111-90/+851
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Correct filename ~/.pangoft2_aliasesAlexander Larsson2001-01-082-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Possibly send focus events when the mouse moves from one window toAlexander Larsson2001-01-081-3/+30
| | | | | | | | | | 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.
* free colormap in here. Sync from X port. (gdk_fb_set_colormap): allow theAlexander Larsson2001-01-053-25/+66
| | | | | | | | | | | | | | | | | | | | | 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.
* Don't use isprint() for chars > 255.Alexander Larsson2000-12-221-1/+1
| | | | | | | 2000-12-22 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): Don't use isprint() for chars > 255.
* Uh? What happed? My cvs checkin got broken pipe..Alexander Larsson2000-12-216-951/+168
|
* Add support for ps2 intellimouse.32000-12-132-5/+13
| | | | | | | | | | | | | | 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.
* Don't free gdk_fb_keyboard twice.Alexander Larsson2000-12-121-2/+0
| | | | | | | 2000-12-12 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close): Don't free gdk_fb_keyboard twice.
* add prot struct member to hold masks for detecting the start of a protocolJames Henstridge2000-12-091-8/+46
| | | | | | | | | | | | | | | | | | | | 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).
* /dev/ttyS0 -> /dev/mouseAlexander Larsson2000-12-081-1/+1
| | | | | | | 2000-12-08 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkmouse-fb.c (gdk_fb_mouse_ms_open): /dev/ttyS0 -> /dev/mouse
* Add dummy gdk_fontset_loadAlexander Larsson2000-12-081-0/+6
|
* Docs, docs, anyone want docs!Alexander Larsson2000-12-083-2/+4
| | | | | | | | | | | | | | | | | | 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.
* New file containing the abstracted keyboard driver. Most code taken fromAlexander Larsson2000-12-0810-879/+1719
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Detect freetype properly Make use of above.Elliot Lee2000-12-061-3/+3
| | | | | * configure.in: Detect freetype properly * modules/basic/Makefile.am, gdk/linux-fb/Makefile.am: Make use of above.
* Add gdkmouse-fb.cAlexander Larsson2000-12-067-1008/+1043
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Update to match latest gmain/gsource changes.Alexander Larsson2000-12-062-29/+38
| | | | | | | | | | | 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.
* Remove bogus colormap setting.Alexander Larsson2000-12-051-14/+1
| | | | | | | 2000-12-05 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkmain-fb.c (gdk_fb_display_new): Remove bogus colormap setting.
* More complete colormap handling. Now GdkRGB work in 8 bpp modes.Alexander Larsson2000-12-052-39/+185
| | | | | | | | | | 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.
* Remove old debug g_warning(). (gdk_fb_draw_drawable): The src argument canAlexander Larsson2000-12-053-149/+30
| | | | | | | | | | | | | | | | 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.
* Use italic instead of oblique in font aliases.Alexander Larsson2000-12-052-18/+27
| | | | | | | | | | | 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.
* Divide size by 2, not multiply.Alexander Larsson2000-12-043-26/+31
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Return positive descent.Alexander Larsson2000-12-041-1/+1
| | | | | | | 2000-12-04 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkpango-fb.c (pango_fb_font_get_metrics): Return positive descent.
* Note: GtkFB now requires Freetype 2 final.12000-12-012-77/+197
| | | | | | | | | | | | | | 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.
* Set the size of the font from the description. (gdk_text_width): GrossAlexander Larsson2000-11-292-5/+9
| | | | | | | | | | | | 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.
* If you pass width or height == 0 to gdk_window_clear_area they should beAlexander Larsson2000-11-291-0/+6
| | | | | | | | 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.
* If there is a grab, but no grab-cursor, use the cursor from the grabbedAlexander Larsson2000-11-291-3/+13
| | | | | | | | | 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.
* Do implicit button grabs, even if the window doesn't want the event.Alexander Larsson2000-11-291-61/+91
| | | | | | | | | | | | | | | 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.
* The cursor should be hidden if it is part of either the source orAlexander Larsson2000-11-281-3/+4
| | | | | | | | | 2000-11-28 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): The cursor should be hidden if it is part of either the source or destination region. Not only if it is in both. (gdk_window_set_transient_for): Silence warnings.
* Fix filled arcs and commit previous stuff which i somehow missed.Alexander Larsson2000-11-283-31/+48
|
* Implement configure events and correct enter/leave notification.Alexander Larsson2000-11-284-110/+207
|
* Huge GtkFB patch with lots of small bugfixes and initial selections ↵Alexander Larsson2000-11-2513-171/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implementation. 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.
* Correct calculation of font metrics. Now GtkEntrys have sane size.Alexander Larsson2000-11-221-2/+4
| | | | | | | | 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.
* i2000-11-22 Alexander Larsson <alexl@redhat.com>Alexander Larsson2000-11-2215-1409/+1471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Removed unused arguments from gdk_fb_drawable_get_pixel().Alexander Larsson2000-11-202-64/+36
| | | | | | | | | | | | 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.
* Add s'more TODO items.Elliot Lee2000-11-151-3/+11
| | | | Add s'more TODO items.
* Fixed some debug macros.Alexander Larsson2000-11-151-1/+2
|
* Added virtual functions set_pixel, get_color, fill_span and draw_drawableAlexander Larsson2000-11-158-508/+1093
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-15 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkprivate-fb.h: Added virtual functions set_pixel, get_color, fill_span and draw_drawable to the GC. Added global _gdk_fb_screen_gc to use instead of NULL when drawing to the screen. Added _gdk_fb_gc_calc_state() prototype. * gdk/linux-fb/gdkgc-fb.c: Call _gdk_fb_gc_calc_state() on any gc state change. * gdk/linux-fb/gdkglobals-fb.c: Add _gdk_fb_screen_gc * gdk/linux-fb/gdkdrawable-fb2.c: _gdk_fb_gc_calc_state() calculates best functions for the GC state and depth. Moved bpp specialized code to separate functions. Added optimized 24 bpp AA draw_drawable. * gdk/linux-fb/gdkevents-fb.c: Silence gcc warning. * gdk/linux-fb/gdkimage-fb.c: Use _gdk_fb_screen_gc * gdk/linux-fb/gdkwindow-fb.c: Init and use _gdk_fb_screen_gc * gdk/linux-fb/mitypes.h: Remove unused types.
* Cleanup and reindent of GtkFB.Alexander Larsson2000-11-1320-2358/+2189
| | | | | Added some serial mouse support. Updates to latest Gtk+/pango
* GCompareFunc -> GEqualFunc where applicable.Sebastian Wilhelmi2000-11-132-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c, gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c, gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c, gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc -> GEqualFunc where applicable. * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare -> pango_font_description_equal as changed in pango. * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal. * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal. * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal. * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal. * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal. * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal. * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and gtk_gc_drawable_compare -> gtk_gc_drawable_equal. * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and gtk_rc_styles_compare -> gtk_rc_styles_equal.
* Changes to make the new testgtk compile after gtk_menu_append was removed.Alexander Larsson2000-11-094-87/+518
| | | | | | | | | | | | | | | | | | | | | | 2000-11-09 Alexander Larsson <alexl@redhat.com> * demos/testgtk/menus.c: Changes to make the new testgtk compile after gtk_menu_append was removed. * gdk/linux-fb/gdkdrawable-fb2.c (gdk_fb_get_depth, gdk_fb_get_visual, gdk_drawable_impl_fb_class_init): Implement these drawable functions. Now GtkImages work again. * gdk/linux-fb/gdkimage-fb.c (_gdk_fb_get_image): Change prototype. * gdk/linux-fb/gdkprivate-fb.h (_gdk_fb_get_image): Change prototype. * gdk/linux-fb/gdkmain-fb.c (fb_modes_parse_mode, gdk_fb_setup_mode_from_name, gdk_fb_set_mode, gdk_fb_display_new); Parse /etc/fb.modes, use the environment variables GDK_DISPLAY_MODE, GDK_DISPLAY_DEPTH, GDK_DISPLAY_WIDTH, GDK_DISPLAY_HEIGHT.
* Forgot to remove stray g_print()Alexander Larsson2000-11-071-2/+0
|
* use g_object_new() instead of g_type_create_instance() which is a privateAlexander Larsson2000-11-0710-149/+222
| | | | | | | | | | | | | | | | | | | | | | 2000-11-07 Alexander Larsson <alla@lysator.liu.se> * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c, gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkimage-fb.c, gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c: use g_object_new() instead of g_type_create_instance() which is a private function for fundamental type implementations. * gdk/linux-fb/gdkinput-ps2.c: Use MEDIUMRAW instead of RAW keycodes. Remove keyboard state-table instead just store the current modifier state. Add a (somewhat broken) keyboard input parser for XLATE mode too, if we couldn't use MEDIUMRAW. Rename exported function gdk_input_ps2_get_mouseinfo to gdk_input_get_mouseinfo. * gdk/linux-fb/gdkmain-fb.c, gdk/linux-fb/gdkprivate-fb.h, gdk/linux-fb/gdkwindow-fb.c: gdk_input_ps2_get_mouseinfo was renamed to gdk_input_get_mouseinfo.
* Add last argument to t_type_register_static call.Alexander Larsson2000-11-0210-15/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-02 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkcolor-fb.c, gdk/linux-fb/gdkdnd-fb.c, gdk/linux-fb/gdkgc-fb.c, gdk/linux-fb/gdkpango-fb.c, gdk/linux-fb/gdkpixmap-fb.c, gdk/linux-fb/gdkwindow-fb.c: Add last argument to t_type_register_static call. * gdk/linux-fb/gdkdrawable-fb2.c: Add last argument to t_type_register_static call. export the get_image drawable virtual function. * gdk/linux-fb/gdkimage-fb.c: Add last argument to t_type_register_static call. rename gtk_image_get to _gdk_fb_get_image and export it for use by gdkdrawable-fb2. * gdk/linux-fb/gdkprivate-fb.h: export _gdk_fb_get_image. * gdk/linux-fb/gdkselection-fb.c: Add new api call stubs. * gtk/Makefile.am: Missing ( in linux-fb part. * modules/linux-fb/Makefile.am: Must link with gdk_pixbuf or get unresolved symbol.
* Use G_GNUC_CONST.Elliot Lee2000-08-301-8/+3
| | | | Use G_GNUC_CONST.
* Try to fix a bug where a window move, with a non-rectangular regionElliot Lee2000-08-231-25/+61
| | | | | | | | | Try to fix a bug where a window move, with a non-rectangular region unobstructed, would cause pieces of the window to be moved twice. Effectively, sort of implement a gdk_draw_drawable_region(drawable, gc, drawable, region, dx, dy); Am going blind trying to find the off-by-one thing, especially since it doesn't happen except for the preview tests. Still not fixed, have at it.
* Ref window before returning.Elliot Lee2000-08-091-0/+2
| | | | Ref window before returning.
* Make numeric keypad work.Elliot Lee2000-08-091-14/+14
| | | | Make numeric keypad work.
* BugfixoramaElliot Lee2000-08-091-9/+11
| | | | Bugfixorama
* Some hacks to stop screen blanking.Elliot Lee2000-08-092-0/+42
| | | | Some hacks to stop screen blanking.
* Implement gdk_beep() (woohoo!)Elliot Lee2000-08-092-5/+17
| | | | Implement gdk_beep() (woohoo!)